public class MeOM
extends org.nlogo.api.DefaultReporter
Constructor and Description |
---|
MeOM() |
Modifier and Type | Method and Description |
---|---|
double |
continuousMeOM(FuzzySet f)
Calculate the mean of Maxima of a continuous set.
|
double |
discreteMeOM(FuzzySet f)
Calculate the mean of maxima of a discrete set.
|
org.nlogo.api.Syntax |
getSyntax()
This method tells Netlogo the appropriate syntax of the primitive.
|
double |
meanOfMax(java.util.List<double[]> intervals)
Calculate the mean of the intervals on a list.
|
double |
piecewiseMeOM(PointSet f)
Calculate the mean of maxima of a piecewise linear set.
|
java.lang.Object |
report(org.nlogo.api.Argument[] arg0,
org.nlogo.api.Context arg1)
This method respond to the call from Netlogo and returns the mean of the
maximum values of a fuzzy set.
|
public org.nlogo.api.Syntax getSyntax()
getSyntax
in interface org.nlogo.api.Primitive
getSyntax
in class org.nlogo.api.DefaultReporter
public java.lang.Object report(org.nlogo.api.Argument[] arg0, org.nlogo.api.Context arg1) throws org.nlogo.api.ExtensionException, org.nlogo.api.LogoException
arg0
- Arguments from Netlogo call, in this case a list.arg1
- Context of Netlogo when the call was done.org.nlogo.api.ExtensionException
org.nlogo.api.LogoException
public double continuousMeOM(FuzzySet f)
f
- The continuous set.public double piecewiseMeOM(PointSet f)
f
- The piecewise linear set.public double meanOfMax(java.util.List<double[]> intervals)
intervals
- The list where the intervals are.public double discreteMeOM(FuzzySet f)
f
- The discrete set.