jhpro.nnet.jknnl
Class LinearFunctionalFactor
- java.lang.Object
-
- jhpro.nnet.jknnl.LinearFunctionalFactor
-
- All Implemented Interfaces:
- LearningFactorFunctionalModel
public class LinearFunctionalFactor extends java.lang.Object implements LearningFactorFunctionalModel
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
Constructors Constructor and Description LinearFunctionalFactor(double n0, double maxIteration)Creates a new instance of LinearFunctionalFactor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description double[]getParameters()Get function parameters.doublegetValue(int k)Return function value for specified iterationvoidsetParameters(double[] parameters)Set function parameters.
-
-
-
Constructor Detail
-
LinearFunctionalFactor
public LinearFunctionalFactor(double n0, double maxIteration)Creates a new instance of LinearFunctionalFactor- Parameters:
n0- maximal factormaxIteration- maximal number of iteration
-
-
Method Detail
-
getParameters
public double[] getParameters()
Get function parameters. First value at the array is n0 second maxIteration- Specified by:
getParametersin interfaceLearningFactorFunctionalModel- Returns:
- Array of parameters
-
setParameters
public void setParameters(double[] parameters)
Set function parameters. First value at the array is n0 second maxIteration- Specified by:
setParametersin interfaceLearningFactorFunctionalModel- Parameters:
parameters- array of parameters
-
getValue
public double getValue(int k)
Return function value for specified iteration- Specified by:
getValuein interfaceLearningFactorFunctionalModel- Parameters:
k- iteration- Returns:
- function value for specified iteration
-
-
DMelt 3.0 © DataMelt by jWork.ORG