jhpro.nnet.jknnl
Class ExponentionalFunctionFactor
- java.lang.Object
-
- jhpro.nnet.jknnl.ExponentionalFunctionFactor
-
- All Implemented Interfaces:
- LearningFactorFunctionalModel
public class ExponentionalFunctionFactor extends java.lang.Object implements LearningFactorFunctionalModel
Exponential Function Factor. Return value calculated by function: independent n0 * exp(-c*k)
where:
n0, c - constant
k - iteration number
-
-
Constructor Summary
Constructors Constructor and Description ExponentionalFunctionFactor(double n0, double c)Creates a new instance of ExponentionalFunctionFactor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description double[]getParameters()Return array containing parameters.doublegetValue(int k)Return value calculated by function describe by n0 * exp(-c*k)voidsetParameters(double[] parameters)Set parameters
-
-
-
Constructor Detail
-
ExponentionalFunctionFactor
public ExponentionalFunctionFactor(double n0, double c)Creates a new instance of ExponentionalFunctionFactor- Parameters:
n0- constant parameterc- constant parameter
-
-
Method Detail
-
getParameters
public double[] getParameters()
Return array containing parameters. First parameter is n0, second c- Specified by:
getParametersin interfaceLearningFactorFunctionalModel- Returns:
- parameters array
-
setParameters
public void setParameters(double[] parameters)
Set parameters- Specified by:
setParametersin interfaceLearningFactorFunctionalModel- Parameters:
parameters- parameters array
-
getValue
public double getValue(int k)
Return value calculated by function describe by n0 * exp(-c*k)- Specified by:
getValuein interfaceLearningFactorFunctionalModel- Parameters:
k- iteration number- Returns:
- value of function factor
-
-
DMelt 3.0 © DataMelt by jWork.ORG