RescaleSlopeAndIntercept

Rescale Slope and Intercept

Constructor

new RescaleSlopeAndIntercept(slope, intercept)

Parameters:
NameTypeDescription
slopenumber

The slope of the RSI.

interceptnumber

The intercept of the RSI.

Classes

RescaleSlopeAndIntercept

Methods

apply(value) → {number}

Apply the RSI on an input value.

Parameters:
NameTypeDescription
valuenumber

The input value.

Returns:

The value to rescale.

Type: 
number

equals(rhs) → {boolean}

Check for RSI equality.

Parameters:
NameTypeDescription
rhsRescaleSlopeAndIntercept

The other RSI to compare to.

Returns:

True if both RSI are equal.

Type: 
boolean

getIntercept() → {number}

Get the intercept of the RSI.

Returns:

The intercept of the RSI.

Type: 
number

getSlope() → {number}

Get the slope of the RSI.

Returns:

The slope of the RSI.

Type: 
number

isID() → {boolean}

Is this RSI an ID RSI.

Returns:

True if the RSI has a slope of 1 and no intercept.

Type: 
boolean

toString() → {string}

Get a string representation of the RSI.

Returns:

The RSI as a string.

Type: 
string