Constructor
new RescaleSlopeAndIntercept(slope, intercept)
Parameters:
Name | Type | Description |
---|---|---|
slope | number | The slope of the RSI. |
intercept | number | The intercept of the RSI. |
- Source
Classes
Methods
apply(value) → {number}
Apply the RSI on an input value.
Parameters:
Name | Type | Description |
---|---|---|
value | number | The input value. |
- Source
Returns:
The value to rescale.
- Type:
- number
equals(rhs) → {boolean}
Check for RSI equality.
Parameters:
Name | Type | Description |
---|---|---|
rhs | RescaleSlopeAndIntercept | The other RSI to compare to. |
- Source
Returns:
True if both RSI are equal.
- Type:
- boolean
getIntercept() → {number}
Get the intercept of the RSI.
- Source
Returns:
The intercept of the RSI.
- Type:
- number
getSlope() → {number}
Get the slope of the RSI.
- Source
Returns:
The slope of the RSI.
- Type:
- number
isID() → {boolean}
Is this RSI an ID RSI.
- Source
Returns:
True if the RSI has a slope of 1 and no intercept.
- Type:
- boolean