jhpro.nnet.jknnl
Class ConstantFunctionalFactor
- java.lang.Object
-
- jhpro.nnet.jknnl.ConstantFunctionalFactor
-
- All Implemented Interfaces:
- LearningFactorFunctionalModel
public class ConstantFunctionalFactor extends java.lang.Object implements LearningFactorFunctionalModel
Constant Function factor. Return constant value independent. of the iteration number
-
-
Constructor Summary
Constructors Constructor and Description ConstantFunctionalFactor(double constant)Creates a new instance of ConstatnFunctionalModel
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description double[]getParameters()Return array containing parameterdoublegetValue(int k)Return function value for specified iteration.voidsetParameters(double[] parameters)Set parameter
-
-
-
Constructor Detail
-
ConstantFunctionalFactor
public ConstantFunctionalFactor(double constant)
Creates a new instance of ConstatnFunctionalModel- Parameters:
constant- constant value
-
-
Method Detail
-
getParameters
public double[] getParameters()
Return array containing parameter- Specified by:
getParametersin interfaceLearningFactorFunctionalModel- Returns:
- constant parameter
-
setParameters
public void setParameters(double[] parameters)
Set parameter- Specified by:
setParametersin interfaceLearningFactorFunctionalModel- Parameters:
parameters- constat value
-
getValue
public double getValue(int k)
Return function value for specified iteration. Value is independent of the iteration and is the same as parameters- Specified by:
getValuein interfaceLearningFactorFunctionalModel- Parameters:
k- iteration number- Returns:
- value of function factor
-
-
DMelt 3.0 © DataMelt by jWork.ORG