jphase.fit
Class DiscPhaseFitter

java.lang.Object
  extended by jphase.fit.DiscPhaseFitter
All Implemented Interfaces:
PhaseFitter
Direct Known Subclasses:
MLDiscPhaseFitter, MomentsDiscPhaseFitter

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

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

Author:
Juan Fernando Pérez

Field Summary
protected  int[] data
          Non-negative data trace from independent experiments
protected  DiscPhaseVar var
          Fitted Discrete Phase-Type variable
 
Constructor Summary
DiscPhaseFitter(int[] data)
           
 
Method Summary
abstract  DiscPhaseVar 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 DiscPhaseVar var
Fitted Discrete Phase-Type variable


data

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

Constructor Detail

DiscPhaseFitter

public DiscPhaseFitter(int[] 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 DiscPhaseVar 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()