org.limn.engine
Class GTBasisFactory
java.lang.Object
|
+--org.limn.engine.RecordingFactory
|
+--org.limn.engine.GTBasisFactory
- All Implemented Interfaces:
- LimnBasisFactory
- Direct Known Subclasses:
- PPHolesFactory
- public class GTBasisFactory
- extends RecordingFactory
GTBasisFactory is a simple factory that creates random projections.
It checks that the new projection is sinugular
|
Method Summary |
boolean |
checkBasis(double[][] d,
double[][] t)
|
void |
gen_norm_variates(double[][] vars)
|
void |
generateBasis(double[][] b,
double[][] t)
generates a new target basis t, checking that the target
is compatible with the base. |
void |
init()
will reseed the basis generator or reset if reading basis from a file
this allows the TourEngine to seek to a specific index in a set tour
(littletour or filebasistour), and allows a random tour to reset if
something has gone strange. |
void |
measure(double[][] t)
|
double[][] |
newBasis()
seeds a new basis array. |
void |
seedBasis(double[][] d)
|
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
GTBasisFactory
public GTBasisFactory(LimnData l)
generateBasis
public void generateBasis(double[][] b,
double[][] t)
- Description copied from interface: LimnBasisFactory
- generates a new target basis t, checking that the target
is compatible with the base.
measure
public void measure(double[][] t)
init
public void init()
- Description copied from interface: LimnBasisFactory
- will reseed the basis generator or reset if reading basis from a file
this allows the TourEngine to seek to a specific index in a set tour
(littletour or filebasistour), and allows a random tour to reset if
something has gone strange.
newBasis
public double[][] newBasis()
- Description copied from interface: LimnBasisFactory
- seeds a new basis array. this is used before the production process
begins to make sure that the basis arrays are dimensioned and initialized.
seedBasis
public void seedBasis(double[][] d)
gen_norm_variates
public void gen_norm_variates(double[][] vars)
checkBasis
public boolean checkBasis(double[][] d,
double[][] t)