motris.algorithm.emcontour
Class GrayValueLaplaceDistribution

java.lang.Object
  extended bymotris.data.Description
      extended byparameter.ParameterizedObjectAdaptor
          extended bymotris.algorithm.emcontour.GrayValueDistribution
              extended bymotris.algorithm.emcontour.GrayValueLaplaceDistribution
All Implemented Interfaces:
ParameterizedObject

public class GrayValueLaplaceDistribution
extends GrayValueDistribution

Generalized Laplacian pdf P(i) = exp(- (i /lambda) ^ beta

Author:
dahlkamp

Nested Class Summary
 
Nested classes inherited from class parameter.ParameterizedObject
ParameterizedObject.ParameterChangedListener, ParameterizedObject.ParameterizedObjectManager
 
Field Summary
private  double beta
           
private  double lambda
           
 
Fields inherited from class motris.algorithm.emcontour.GrayValueDistribution
grayLevels, normalizationCoefficient, preComputedProbability, preComputeValues
 
Fields inherited from class parameter.ParameterizedObjectAdaptor
parameterChangedNotifyList
 
Fields inherited from class motris.data.Description
 
Constructor Summary
GrayValueLaplaceDistribution(java.lang.String _name, java.lang.String _id, double _beta, double _lambda, int _preComputeAmount)
           
GrayValueLaplaceDistribution(java.lang.String _name, java.lang.String _id, int _preComputeAmount)
           
 
Method Summary
 ParameterSet getParameters()
          Get a Vector of Strings with a description of each Parameter
 double internalGetProbability(int grayValueDifference)
           
 void setLambda(double d)
           
 boolean setParameters(ParameterSet _params)
          Set Parameters of this class
 
Methods inherited from class motris.algorithm.emcontour.GrayValueDistribution
computeNormalization, getProbability, setPreComputeAmount
 
Methods inherited from class parameter.ParameterizedObjectAdaptor
addParameterChangedListener, finalize, fireParameterChanged, parameterEdited, removeParameterChangedListener
 
Methods inherited from class motris.data.Description
getDescription, getIdentifier, getName, setDescription, setIdentifier, setName
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

beta

private double beta

lambda

private double lambda
Constructor Detail

GrayValueLaplaceDistribution

public GrayValueLaplaceDistribution(java.lang.String _name,
                                    java.lang.String _id,
                                    double _beta,
                                    double _lambda,
                                    int _preComputeAmount)

GrayValueLaplaceDistribution

public GrayValueLaplaceDistribution(java.lang.String _name,
                                    java.lang.String _id,
                                    int _preComputeAmount)
Method Detail

internalGetProbability

public double internalGetProbability(int grayValueDifference)
Specified by:
internalGetProbability in class GrayValueDistribution

getParameters

public ParameterSet getParameters()
Description copied from interface: ParameterizedObject
Get a Vector of Strings with a description of each Parameter

Specified by:
getParameters in interface ParameterizedObject
Overrides:
getParameters in class ParameterizedObjectAdaptor

setParameters

public boolean setParameters(ParameterSet _params)
Description copied from interface: ParameterizedObject
Set Parameters of this class

Specified by:
setParameters in interface ParameterizedObject
Overrides:
setParameters in class ParameterizedObjectAdaptor

setLambda

public void setLambda(double d)
Parameters:
d -