Class LogisticWeightFunction
- java.lang.Object
-
- org.processmining.stochasticlabelleddatapetrinet.weights.LogisticWeightFunction
-
- All Implemented Interfaces:
SerializableWeightFunction,WeightFunction
public class LogisticWeightFunction extends java.lang.Object implements SerializableWeightFunction
-
-
Constructor Summary
Constructors Constructor Description LogisticWeightFunction()LogisticWeightFunction(double intercept, double[] coefficients)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeserialize(java.io.InputStream is)booleanequals(java.lang.Object obj)doubleevaluateWeight(StochasticLabelledDataPetriNet net, DataState dataState)double[]getCoefficients()doublegetIntercept()inthashCode()voidserialize(java.io.OutputStream os)voidsetCoefficients(double[] coefficients)voidsetIntercept(double intercept)java.lang.StringtoString()
-
-
-
Method Detail
-
evaluateWeight
public double evaluateWeight(StochasticLabelledDataPetriNet net, DataState dataState)
- Specified by:
evaluateWeightin interfaceWeightFunction
-
serialize
public void serialize(java.io.OutputStream os) throws java.io.IOException- Specified by:
serializein interfaceSerializableWeightFunction- Throws:
java.io.IOException
-
deserialize
public void deserialize(java.io.InputStream is) throws java.io.IOException- Specified by:
deserializein interfaceSerializableWeightFunction- Throws:
java.io.IOException
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getCoefficients
public double[] getCoefficients()
-
setCoefficients
public void setCoefficients(double[] coefficients)
-
getIntercept
public double getIntercept()
-
setIntercept
public void setIntercept(double intercept)
-
-