jildt.tilde.math
Class InformationGain

java.lang.Object
  extended by jason.asSemantics.DefaultArithFunction
      extended by 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:

Author:
Carlos Alberto González-Alarcón, Alejandro Guerra-Hernández, Francisco Grimaldo-Moreno
See Also:
Serialized Form

Constructor Summary
InformationGain()
           
 
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
 

Constructor Detail

InformationGain

public InformationGain()
Method Detail

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