public class Cut
extends org.nlogo.api.DefaultReporter
Constructor and Description |
---|
Cut() |
Modifier and Type | Method and Description |
---|---|
FuzzySet |
cutDiscrete(PointSet f,
double c)
Truncate a discrete set.
|
FuzzySet |
cutPiecewise(PointSet f,
double c)
Truncate a piecewise linear set.
|
FuzzySet |
cutting(FuzzySet f,
double c)
Checks what kind of fuzzy set is passed and execute the correct action.
|
org.nlogo.api.Syntax |
getSyntax()
This method tells Netlogo the appropriate syntax of the primitive.
|
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 truncated
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 FuzzySet cutting(FuzzySet f, double c)
f
- The fuzzy set to be truncated.c
- The number to truncate the fuzzy set.public FuzzySet cutDiscrete(PointSet f, double c)
f
- The discrete set.c
- The number to truncate the set.