com.graphbuilder.math.func.ModFunction Class Reference

The mod function. More...

Inheritance diagram for com.graphbuilder.math.func.ModFunction:
Inheritance graph
[legend]
Collaboration diagram for com.graphbuilder.math.func.ModFunction:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ModFunction ()
double of (double[] d, int numParam)
 Returns the value of x % y, where x = d[0] and y = d[1].
boolean acceptNumParam (int numParam)
 Returns true only for 2 parameters, false otherwise.
String toString ()

Detailed Description

The mod function.

Definition at line 6 of file ModFunction.java.


Constructor & Destructor Documentation

com.graphbuilder.math.func.ModFunction.ModFunction (  ) 

Definition at line 8 of file ModFunction.java.


Member Function Documentation

boolean com.graphbuilder.math.func.ModFunction.acceptNumParam ( int  numParam  ) 

Returns true only for 2 parameters, false otherwise.

Implements com.graphbuilder.math.func.Function.

Definition at line 21 of file ModFunction.java.

double com.graphbuilder.math.func.ModFunction.of ( double[]  d,
int  numParam 
)

Returns the value of x % y, where x = d[0] and y = d[1].

More precisely, the value returned is x minus the value of x / y, where x / y is rounded to the closest integer value towards 0.

Implements com.graphbuilder.math.func.Function.

Definition at line 14 of file ModFunction.java.

String com.graphbuilder.math.func.ModFunction.toString (  ) 

Definition at line 25 of file ModFunction.java.


The documentation for this class was generated from the following file:

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1