jphase.fit
Class ContPhaseFitter

java.lang.Object
  extended by jphase.fit.ContPhaseFitter
All Implemented Interfaces:
PhaseFitter
Direct Known Subclasses:
MLContPhaseFitter, MomentsContPhaseFitter

public abstract class ContPhaseFitter
extends java.lang.Object
implements PhaseFitter

This class defines the behaviour that any class for fitting data to a Continuous Phase-Type distribution should have

Author:
Juan Fernando Pérez

Field Summary
protected  double[] data
          Non-negative data trace from independent experiments
protected  ContPhaseVar var
          Fitted Continuous Phase-Type variable
 
Constructor Summary
ContPhaseFitter(double[] data)
           
 
Method Summary
abstract  ContPhaseVar fit()
          Executes the fitting procedure to find the parameter set
 double getLogLikelihood()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

var

protected ContPhaseVar var
Fitted Continuous Phase-Type variable


data

protected double[] data
Non-negative data trace from independent experiments

Constructor Detail

ContPhaseFitter

public ContPhaseFitter(double[] data)
Parameters:
data -
Method Detail

getLogLikelihood

public double getLogLikelihood()
Returns:
-1 if there is no data associated to the algorithm, 0 if there has not been found a ContPhaseVar yet, or the likelihood.

fit

public abstract ContPhaseVar fit()
Description copied from interface: PhaseFitter
Executes the fitting procedure to find the parameter set

Specified by:
fit in interface PhaseFitter
Returns:
Phase variable found
See Also:
PhaseFitter.fit()