public abstract class IterativeMatrixFactorizationFactory extends Object implements IMatrixFactorizationFactory
IMatrixFactorization
s.Modifier and Type | Field and Description |
---|---|
protected static int |
DEFAULT_K
The default number of base vectors
|
protected static int |
DEFAULT_MAX_ITERATIONS
The default number of maximum iterations
|
protected static boolean |
DEFAULT_ORDERED |
protected static ISeedingStrategyFactory |
DEFAULT_SEEDING_FACTORY
Default matrix seeding strategy factory
|
protected static double |
DEFAULT_STOP_THRESHOLD
The default stop threshold
|
protected int |
k
The number of base vectors
|
protected int |
maxIterations
The maximum number of iterations the algorithm is allowed to complete
|
protected boolean |
ordered
Order base vectors according to their 'activity'
|
protected ISeedingStrategyFactory |
seedingFactory
Matrix seeding strategy factory
|
protected double |
stopThreshold
The algorithm's stop threshold
|
Constructor and Description |
---|
IterativeMatrixFactorizationFactory() |
Modifier and Type | Method and Description |
---|---|
protected ISeedingStrategy |
createSeedingStrategy() |
int |
getK()
Returns the number of base vectors k .
|
int |
getMaxIterations()
Returns the maximum number of iterations used by this factory.
|
ISeedingStrategyFactory |
getSeedingFactory()
Returns the
ISeedingStrategyFactory used by this factory. |
double |
getStopThreshold()
Returns the stop threshold used by this factory.
|
boolean |
isOrdered()
Returns
true when the factorization is set to generate an ordered
basis. |
void |
setK(int k)
Sets the number of base vectors k .
|
void |
setMaxIterations(int maxIterations)
Sets the maximum number of iterations to be used by this factory.
|
void |
setOrdered(boolean ordered)
Set to
true to generate an ordered basis. |
void |
setSeedingFactory(ISeedingStrategyFactory seedingFactory)
Sets the
ISeedingStrategyFactory to be used by this factory. |
void |
setStopThreshold(double stopThreshold)
Sets the stop threshold to be used by this factory.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
factorize
protected int k
protected static final int DEFAULT_K
protected int maxIterations
protected static final int DEFAULT_MAX_ITERATIONS
protected double stopThreshold
protected static final double DEFAULT_STOP_THRESHOLD
protected ISeedingStrategyFactory seedingFactory
protected static final ISeedingStrategyFactory DEFAULT_SEEDING_FACTORY
protected boolean ordered
protected static final boolean DEFAULT_ORDERED
public void setK(int k)
k
- the number of base vectorspublic int getK()
protected ISeedingStrategy createSeedingStrategy()
public int getMaxIterations()
public void setMaxIterations(int maxIterations)
public double getStopThreshold()
public void setStopThreshold(double stopThreshold)
public ISeedingStrategyFactory getSeedingFactory()
ISeedingStrategyFactory
used by this factory.public void setSeedingFactory(ISeedingStrategyFactory seedingFactory)
ISeedingStrategyFactory
to be used by this factory.public boolean isOrdered()
true
when the factorization is set to generate an ordered
basis.public void setOrdered(boolean ordered)
true
to generate an ordered basis.