public final class ParameterTuning extends Object
Modifier and Type | Method and Description |
---|---|
static ParameterTuningOneWay |
oneWayDifference(SensitivityFunctionOneWay f1,
SensitivityFunctionOneWay f2,
Interval<Double> constraint)
Given a pair of sensitivity functions (evaluated on the same parameter and evidence but different hypotheses), determines how the parameter under consideration can be altered so that the difference between the hypothesis probabilities P(h1|e) - P(h2|e) is within a given range.
|
static ParameterTuningOneWay |
oneWayRatio(SensitivityFunctionOneWay f1,
SensitivityFunctionOneWay f2,
Interval<Double> constraint)
Given a pair of sensitivity functions (evaluated on the same parameter and evidence but different hypotheses), determines how the parameter under consideration can be altered so that the ratio between the hypothesis probabilities P(h1|e) / P(h2|e) is within a given range.
|
static ParameterTuningOneWay |
oneWaySimple(SensitivityFunctionOneWay f,
Interval<Double> constraint)
Given a sensitivity function, determines how the parameter under consideration can be altered so that the resulting value of the hypothesis is within a given range.
|
public static ParameterTuningOneWay oneWaySimple(SensitivityFunctionOneWay f, Interval<Double> constraint) throws ConstraintSatisfiedException, ConstraintNotSatisfiedException
f
- The sensitivity function.constraint
- A goal/range we would like the hypothesis probability to lie within.ConstraintSatisfiedException
- Raised if the constraint is already satisfied.ConstraintNotSatisfiedException
- Raised if the constraint cannot be satisfied.public static ParameterTuningOneWay oneWayDifference(SensitivityFunctionOneWay f1, SensitivityFunctionOneWay f2, Interval<Double> constraint) throws ConstraintSatisfiedException, ConstraintNotSatisfiedException
f1
- The first sensitivity function.f2
- The second sensitivity function.constraint
- A goal/range we would like P(h1|e) - P(h2|e) to lie within.ConstraintSatisfiedException
- Raised if the constraint is already satisfied.ConstraintNotSatisfiedException
- Raised if the constraint cannot be satisfied.public static ParameterTuningOneWay oneWayRatio(SensitivityFunctionOneWay f1, SensitivityFunctionOneWay f2, Interval<Double> constraint) throws ConstraintSatisfiedException, ConstraintNotSatisfiedException
f1
- The first sensitivity function.f2
- The second sensitivity function.constraint
- A goal/range we would like P(h1|e) / P(h2|e) to lie within.ConstraintSatisfiedException
- Raised if the constraint is already satisfied.ConstraintNotSatisfiedException
- Raised if the constraint cannot be satisfied.Copyright © 2023. All rights reserved.