learningFactorFunctional
Class ConstantFunctionalFactor

java.lang.Object
  extended by learningFactorFunctional.ConstantFunctionalFactor
All Implemented Interfaces:
LearningFactorFunctionalModel

public class ConstantFunctionalFactor
extends java.lang.Object
implements LearningFactorFunctionalModel

Constant Function factor. Return constant value indpenend of the iteration number


Constructor Summary
ConstantFunctionalFactor(double constant)
          Creates a new instance of ConstatnFunctionalModel
 
Method Summary
 double[] getParameters()
          Return array containing parameter
 double getValue(int k)
          Return function value for specified iteratnion.
 void setParameters(double[] parameters)
          Set parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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:
getParameters in interface LearningFactorFunctionalModel
Returns:
constant parameter

setParameters

public void setParameters(double[] parameters)
Set parameter

Specified by:
setParameters in interface LearningFactorFunctionalModel
Parameters:
parameters - constat value

getValue

public double getValue(int k)
Return function value for specified iteratnion. Value is independent of the iteration and is the same as parameters

Specified by:
getValue in interface LearningFactorFunctionalModel
Parameters:
k - iternetion number
Returns:
value of function factor