com.rubecula.darwin.domain.helper
Interface FitnessFunction

All Superinterfaces:
net.sf.tostring0.Identifiable
All Known Implementing Classes:
FitnessFunction_, FitnessFunction_Math, FitnessFunction_Normal, FitnessFunction_PseudoPoisson, FitnessFunction_ScaledNormal

public interface FitnessFunction
extends net.sf.tostring0.Identifiable

Author:
Robin Hillyard

Field Summary
static java.lang.String PREFIX_VAR_RPN
          $
static java.lang.String VAR_SHAPE_FACTOR
          shapeFactor
static java.lang.String VAR_TARGET
          target
static java.lang.String VAR_VALUE
          value
 
Method Summary
 double getFitness(double value, double target, double factor)
           
 
Methods inherited from interface net.sf.tostring0.Identifiable
getIdentifier
 

Field Detail

VAR_SHAPE_FACTOR

static final java.lang.String VAR_SHAPE_FACTOR
shapeFactor

See Also:
Constant Field Values

VAR_TARGET

static final java.lang.String VAR_TARGET
target

See Also:
Constant Field Values

VAR_VALUE

static final java.lang.String VAR_VALUE
value

See Also:
Constant Field Values

PREFIX_VAR_RPN

static final java.lang.String PREFIX_VAR_RPN
$

See Also:
Constant Field Values
Method Detail

getFitness

double getFitness(double value,
                  double target,
                  double factor)
                  throws FitnessException
Parameters:
value - the variate value
target - the ideal value of the variate (typically the mean value for a normal distribution).
factor - a shape factor for the distribution (typically the standard deviation for a normal distribution).
Returns:
the probability density function for the variate value value given a continuous distribution with ideal value: target and shape factor: factor.
Throws:
FitnessException


Copyright © 2010 Rubecula Software, LLC. All Rights Reserved.