pt.tumba.ngram.bayes
Class TwoMonotoneCapacity

java.lang.Object
  extended by pt.tumba.ngram.bayes.DiscreteFunction
      extended by pt.tumba.ngram.bayes.ProbabilityFunction
          extended by pt.tumba.ngram.bayes.QBProbabilityFunction
              extended by pt.tumba.ngram.bayes.FinitelyGeneratedSet
                  extended by pt.tumba.ngram.bayes.TwoMonotoneCapacity
All Implemented Interfaces:
java.io.Serializable, MappingDouble
Direct Known Subclasses:
ConstantDensityBoundedSet, TotalVariationSet

public abstract class TwoMonotoneCapacity
extends FinitelyGeneratedSet
implements MappingDouble

See Also:
Serialized Form

Field Summary
private static double ACCURACY
           
private static int LOWER_EXPECTATION_BRACKET
           
private  DiscreteFunction temporary_discrete_function
           
private static int UPPER_EXPECTATION_BRACKET
           
 
Fields inherited from class pt.tumba.ngram.bayes.QBProbabilityFunction
lower_envelope, upper_envelope
 
Fields inherited from class pt.tumba.ngram.bayes.ProbabilityFunction
bn, properties
 
Fields inherited from class pt.tumba.ngram.bayes.DiscreteFunction
values, variables
 
Constructor Summary
TwoMonotoneCapacity(ProbabilityFunction pf)
          Constructor for an TwoMonotoneCapacity ProbabilityFunction object and given epsilon.
 
Method Summary
 double[] expected_values(DiscreteFunction df)
           
abstract  double get_atom_probability(int index)
           
abstract  double get_lower_probability_from_base(double p)
          Obtain the lower probability of an event given the base probability for the event.
abstract  double get_upper_probability_from_base(double p)
           
 double map(int map_type, double map_input)
           
 double[] posterior_expected_values(DiscreteFunction df)
           
 ProbabilityFunction posterior_marginal()
           
 
Methods inherited from class pt.tumba.ngram.bayes.QBProbabilityFunction
get_lower_envelope, get_upper_envelope, print, print
 
Methods inherited from class pt.tumba.ngram.bayes.ProbabilityFunction
add_property, evaluate, evaluate, expected_value, get_enumerated_properties, get_position_from_indexes, get_properties, posterior_expected_value, process_properties, remove_property, remove_property, save_xml_0_3, save_xml, set_properties, set_value, variance
 
Methods inherited from class pt.tumba.ngram.bayes.DiscreteFunction
evaluate, get_index, get_indexes, get_position_from_indexes, get_value, get_values, get_variable, get_variables, memberOf, multiply, normalize_first, normalize, number_values, number_variables, same_variables, set_value, set_values, set_variable, sum_out
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

temporary_discrete_function

private DiscreteFunction temporary_discrete_function

LOWER_EXPECTATION_BRACKET

private static final int LOWER_EXPECTATION_BRACKET
See Also:
Constant Field Values

UPPER_EXPECTATION_BRACKET

private static final int UPPER_EXPECTATION_BRACKET
See Also:
Constant Field Values

ACCURACY

private static final double ACCURACY
See Also:
Constant Field Values
Constructor Detail

TwoMonotoneCapacity

public TwoMonotoneCapacity(ProbabilityFunction pf)
Constructor for an TwoMonotoneCapacity ProbabilityFunction object and given epsilon.

Method Detail

get_lower_probability_from_base

public abstract double get_lower_probability_from_base(double p)
Obtain the lower probability of an event given the base probability for the event.


get_upper_probability_from_base

public abstract double get_upper_probability_from_base(double p)

get_atom_probability

public abstract double get_atom_probability(int index)

posterior_marginal

public ProbabilityFunction posterior_marginal()

expected_values

public double[] expected_values(DiscreteFunction df)

posterior_expected_values

public double[] posterior_expected_values(DiscreteFunction df)

map

public double map(int map_type,
                  double map_input)
Specified by:
map in interface MappingDouble