|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectlearningFactorFunctional.LinearFunctionalFactor
public class LinearFunctionalFactor
Linear function describe by: y = (n0 / maxIter) * (maxIter - iter) where:
y - output value
n0 - maximal factor
maxIter - maximal number of iteration
iter - iteration number
Constructor Summary | |
---|---|
LinearFunctionalFactor(double n0,
double maxIteration)
Creates a new instance of LinearFunctionalFactor |
Method Summary | |
---|---|
double[] |
getParameters()
Get function parameters. |
double |
getValue(int k)
Return funciton value for specified iteration |
void |
setParameters(double[] parameters)
Set funciton parameters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinearFunctionalFactor(double n0, double maxIteration)
n0
- maximal factormaxIteration
- maximal number of iterationMethod Detail |
---|
public double[] getParameters()
getParameters
in interface LearningFactorFunctionalModel
public void setParameters(double[] parameters)
setParameters
in interface LearningFactorFunctionalModel
parameters
- array of parameterspublic double getValue(int k)
getValue
in interface LearningFactorFunctionalModel
k
- iteration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |