import {Measure} from '@functional-abstraction/measure/src/0-core/0-base/Measure.js'
Measure
Abstract Measure class.
Constructor Summary
Public Constructor | ||
public |
Constructor, stores the monoid. |
Member Summary
Public Members | ||
public |
monoid: * |
Method Summary
Public Methods | ||
public |
measure(_element: *) Returns the measure of an element. |
|
public |
plus(a: *, b: *, c: *): * Adds measures together using monoid#plus. |
|
public |
zero(): * Returns the zero measure according to the monoid. |
Public Constructors
Public Members
public monoid: * source
Public Methods
public measure(_element: *) source
Returns the measure of an element. Must be implemented by classes extending Measure
Params:
Name | Type | Attribute | Description |
_element | * |
public plus(a: *, b: *, c: *): * source
Adds measures together using monoid#plus.
Params:
Name | Type | Attribute | Description |
a | * | ||
b | * | ||
c | * |
|
Return:
* |