pt.tumba.ngram.bayes
Class TwoMonotoneCapacity
java.lang.Object
pt.tumba.ngram.bayes.DiscreteFunction
pt.tumba.ngram.bayes.ProbabilityFunction
pt.tumba.ngram.bayes.QBProbabilityFunction
pt.tumba.ngram.bayes.FinitelyGeneratedSet
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
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 |
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
TwoMonotoneCapacity
public TwoMonotoneCapacity(ProbabilityFunction pf)
- Constructor for an TwoMonotoneCapacity
ProbabilityFunction object and given epsilon.
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