|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectUtil.ConstantGenerator
public class ConstantGenerator
This class is used to generate constants for symbolic regression and the Binomial 3 problem.
Field Summary | |
---|---|
protected MersenneTwisterFast |
m
|
Constructor Summary | |
---|---|
ConstantGenerator()
|
Method Summary | |
---|---|
float |
getConstant()
This generates a float constant value |
static int |
getDecimalPlaces()
This displays the current decimal places (default is 2); |
static int |
getMod()
This displays the current set modulo value (default is 1000); |
java.lang.String |
getStringConstant()
This generates a float constant value in a string format |
static void |
main(java.lang.String[] args)
|
static void |
setDecimalPlaces(int dp)
This sets the number of decimal places |
static void |
setMod(int mod)
This sets the modulo value to limit the range |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected MersenneTwisterFast m
Constructor Detail |
---|
public ConstantGenerator()
Method Detail |
---|
public static void setMod(int mod)
mod
- public static int getMod()
public static void setDecimalPlaces(int dp)
dp
- The number of decimal placespublic static int getDecimalPlaces()
public float getConstant()
public java.lang.String getStringConstant()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |