jildt.tilde.math
Class InformationGain
java.lang.Object
jason.asSemantics.DefaultArithFunction
jildt.tilde.math.InformationGain
- All Implemented Interfaces:
- jason.asSemantics.ArithFunction, java.io.Serializable
public class InformationGain
- extends jason.asSemantics.DefaultArithFunction
Function to calculate Information Gain.
Use:
IG = jildt.math.infoGain(Exs, Qb)
Parameters:
- + examples (List): the list of examples which information gain will be calculated for.
- + query (List): the refinement which information gain will be calculated for.
- Author:
- Carlos Alberto González-Alarcón, Alejandro Guerra-Hernández, Francisco Grimaldo-Moreno
- See Also:
- Serialized Form
Method Summary |
boolean |
allowUngroundTerms()
|
static double |
calculate(jason.asSemantics.TransitionSystem ts,
jason.asSyntax.Term[] args)
|
boolean |
checkArity(int a)
|
double |
evaluate(jason.asSemantics.TransitionSystem ts,
jason.asSyntax.Term[] args)
|
java.lang.String |
getName()
|
Methods inherited from class jason.asSemantics.DefaultArithFunction |
toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
InformationGain
public InformationGain()
calculate
public static double calculate(jason.asSemantics.TransitionSystem ts,
jason.asSyntax.Term[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
evaluate
public double evaluate(jason.asSemantics.TransitionSystem ts,
jason.asSyntax.Term[] args)
throws java.lang.Exception
- Specified by:
evaluate
in interface jason.asSemantics.ArithFunction
- Overrides:
evaluate
in class jason.asSemantics.DefaultArithFunction
- Throws:
java.lang.Exception
checkArity
public boolean checkArity(int a)
- Specified by:
checkArity
in interface jason.asSemantics.ArithFunction
- Overrides:
checkArity
in class jason.asSemantics.DefaultArithFunction
getName
public java.lang.String getName()
- Specified by:
getName
in interface jason.asSemantics.ArithFunction
- Overrides:
getName
in class jason.asSemantics.DefaultArithFunction
allowUngroundTerms
public boolean allowUngroundTerms()
- Specified by:
allowUngroundTerms
in interface jason.asSemantics.ArithFunction
- Overrides:
allowUngroundTerms
in class jason.asSemantics.DefaultArithFunction