LinearFunction

The LinearFunction class describes a linear function with a format of Y = k*X + b

Constructors

this
this()

Undocumented in source.

this
this(double k, double b)

Constructor

Members

Functions

inversed
LinearFunction inversed()

Reverses current linear function so X = k*Y + b

isValid
bool isValid()

Checks if linear function is valid, i.e. if k != 0

y
double y(double x)

Function value

Variables

b
double b;

Undocumented in source.

k
double k;

Undocumented in source.

Meta