public class SupportFunctions
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static double |
resolution
Number of points to evaluate continuous sets.
|
Constructor and Description |
---|
SupportFunctions() |
Modifier and Type | Method and Description |
---|---|
static void |
addToRegistry(FuzzySet f,
java.lang.String name,
org.nlogo.api.Context c)
Add the fuzzy set with label to the registry of sets.
|
static java.util.List<double[]> |
checkListFormat(org.nlogo.api.LogoList params)
Checks the format of the sets defined with points.
|
static double |
getResolution()
Get the resolution of the model.
|
static double[] |
IWPFormat(org.nlogo.api.LogoList params)
Checks the parameters of Interval with points sets.
|
static double[] |
LGEFormat(org.nlogo.api.LogoList params,
int n)
Checks the format of Logistic,Exponential and Gaussian sets
|
static void |
setResolution(double d)
Sets the resolution of the model.
|
static java.util.List<double[]> |
sortListOfPoints(java.util.List<double[]> list)
Sort the points inside a list.
|
static java.util.List<double[]> |
trapezoidalFormat(org.nlogo.api.LogoList params)
Checks the format of the trapezoidal sets.
|
static double[] |
universe(org.nlogo.api.LogoList params)
Calculate the universe of the parameters that comes from netlogo.
|
private static double resolution
public static double getResolution()
public static void setResolution(double d)
d
- The resolution we want to set.public static double[] universe(org.nlogo.api.LogoList params)
params
- Parameters of a fuzzy set.public static java.util.List<double[]> checkListFormat(org.nlogo.api.LogoList params) throws org.nlogo.api.ExtensionException
params
- Parameters of the fuzzy set.org.nlogo.api.ExtensionException
public static java.util.List<double[]> sortListOfPoints(java.util.List<double[]> list)
list
- the list with all points.public static double[] LGEFormat(org.nlogo.api.LogoList params, int n) throws org.nlogo.api.ExtensionException
params
- the parameters of the setn
- Integer to check if 3 or 4 parameters requiredorg.nlogo.api.ExtensionException
public static double[] IWPFormat(org.nlogo.api.LogoList params) throws org.nlogo.api.ExtensionException
params
- The parameters of the set.org.nlogo.api.ExtensionException
public static java.util.List<double[]> trapezoidalFormat(org.nlogo.api.LogoList params) throws org.nlogo.api.ExtensionException
params
- The parameters of the trapezoidal set.org.nlogo.api.ExtensionException
public static void addToRegistry(FuzzySet f, java.lang.String name, org.nlogo.api.Context c) throws org.nlogo.api.ExtensionException
f
- The fuzzy set.name
- The label of the fuzzy set.c
- The context of netlogo.org.nlogo.api.ExtensionException