|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.classifiers.m5.Function
Class for handling a linear function.
Constructor Summary | |
Function()
Constructs a function of constant value |
|
Function(Instances inst)
Constucts a function with all attributes except the class in the inst |
|
Function(int attr)
Constructs a function with one attribute |
Method Summary | |
static Function |
combine(Function f1,
Function f2)
Constructs a new function of which the variable list is a combination of those of two functions |
Function |
copy()
Makes a copy of a function |
Errors |
errors(Instances inst)
Evaluates a function |
int |
insignificant(double sdy,
Instances inst)
Detects the most insignificant variable in the funcion |
double |
predict(Instance instance)
Returns the predicted value of instance i by a function |
Function |
remove(int j)
Removes a term from the function |
java.lang.String |
toString(Instances inst,
int startPoint)
Converts a function to a string |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Function()
public Function(Instances inst)
inst
- instancespublic Function(int attr)
attr
- an attributeMethod Detail |
public final Function copy()
public final java.lang.String toString(Instances inst, int startPoint) throws java.lang.Exception
inst
- instancesstartPoint
- the starting point on the screen; used to feed line before reaching beyond 80 charactersjava.lang.Exception
- if something goes wrongpublic static final Function combine(Function f1, Function f2)
f1
- function 1f2
- function 2public final Errors errors(Instances inst) throws java.lang.Exception
inst
- instancesjava.lang.Exception
- if something goes wrongpublic final double predict(Instance instance)
i
- instance iinst
- instancespublic final int insignificant(double sdy, Instances inst)
sdy
- the standard deviation of the class variableinst
- instancespublic final Function remove(int j)
j
- the j-th index in the variable list in the function
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |