org.activemath.webapp.evaluators
Class EvaluationFunction

java.lang.Object
  extended by org.activemath.webapp.evaluators.EvaluationFunction

public abstract class EvaluationFunction
extends Object

Class that contains the possible updating functions (behaviours). These functions correlate the number of times the user saw an item/ solved an exercise with the amplitude of the assessment updating. It's based on a typesafe enum enhanced with an attached behaviour for each of the interaction types READ, EXAMPLE and EXERCISE.


Field Summary
static EvaluationFunction LINEAR_DECREASE
          Linear decrease function: The update fades in a linear fashion with the number of interactions.
static EvaluationFunction LINEAR_INCREASE
          Linear increase function: The update grows in a linear fashion with the number of interactions.
static EvaluationFunction LOG_DECREASE
          Logarithmic decrease function: The update fades in a logarithmic fashion with the number of interactions.
static EvaluationFunction LOG_INCREASE
          Logarithmic increase function: The update grows in a logarithmic fashion with the number of interactions.
static EvaluationFunction NONE
          No function: The update doesn't depend on the number of interactions.
static EvaluationFunction QUAD_DECREASE
          Quadratic decrease function: The update fades in a quadratic fashion with the number of interactions, i.e the amplitude values are divided by the number of times this Element has been shown to the user to the square.
static EvaluationFunction QUAD_INCREASE
          Quadratic increase function: The update grows in a quadratic fashion with the number of interactions.
 
Method Summary
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final EvaluationFunction NONE
No function: The update doesn't depend on the number of interactions.


LINEAR_INCREASE

public static final EvaluationFunction LINEAR_INCREASE
Linear increase function: The update grows in a linear fashion with the number of interactions.
Concrete example, just for the Knowledge-value, taking readKnowledgeUpdate as 0.3: user sees item x for the 1st. time -> K-value is 0.0 + 0.3*1.0 = 0.3 user sees item x for the 2nd time -> K-value is 0.3 + 0.3*2.0 = 0.9


LOG_INCREASE

public static final EvaluationFunction LOG_INCREASE
Logarithmic increase function: The update grows in a logarithmic fashion with the number of interactions.


QUAD_INCREASE

public static final EvaluationFunction QUAD_INCREASE
Quadratic increase function: The update grows in a quadratic fashion with the number of interactions.


LINEAR_DECREASE

public static final EvaluationFunction LINEAR_DECREASE
Linear decrease function: The update fades in a linear fashion with the number of interactions.


LOG_DECREASE

public static final EvaluationFunction LOG_DECREASE
Logarithmic decrease function: The update fades in a logarithmic fashion with the number of interactions. To be concrete: The update amplitude values are divided by log(number of times this Element has been shown to the user) + 1.


QUAD_DECREASE

public static final EvaluationFunction QUAD_DECREASE
Quadratic decrease function: The update fades in a quadratic fashion with the number of interactions, i.e the amplitude values are divided by the number of times this Element has been shown to the user to the square.

Method Detail

toString

public String toString()
Overrides:
toString in class Object