CPolynomial Class
The CPolynomial class manages a list of coefficient values. This class is used by some methods such as CImage:ScalePolyVal which require a coefficient set as input. The most typically used methods are Set and Get to add and retrieve coefficients, respectively.
NOTE: The coefficients are indexed relative to 0, i.e., coef[0] is the lowest (zero order, or constant) term.
Construction |
Object = CPolynomial:new() |
Destruction |
Object:delete() |
This class has no exposed properties.
Creates a new instance of the CPolynomial class. |
|
Deletes the instance of the CPolynomial object. |
|
Copies the CPolynomial to a new CPolynomial object. |
Returns the number of coefficients in the list. |
|
Empties all coefficients from the set. |
|
Returns true if a coefficient at index has been initialized. |
|
Returns the coefficient value at an index. |
|
Initializes some number of coefficients to a value. |
|
Returns the maximum order coefficient that is initialized. |
|
Removes the coefficient value at an index. |
|
Sets the coefficient value at an index. |