Class SensitivityToParameters


  • public final class SensitivityToParameters
    extends Object
    Calculates the affect of one or more parameters on the value of a hypothesis.
    • Constructor Detail

      • SensitivityToParameters

        public SensitivityToParameters​(Network network,
                                       InferenceFactory factory)
        Initializes a new instance of the SensitivityToParameters class .
        Parameters:
        network - The network.
        factory - The inference factory which will be used to create inference engines during an analysis.
    • Method Detail

      • oneWay

        public SensitivityFunctionOneWay oneWay​(Evidence evidence,
                                                State hypothesis,
                                                ParameterReference parameter)
        Calculates how a hypothesis varies based on changes to a single parameter.
        Parameters:
        evidence - The evidence.
        hypothesis - The state whose probability is to be analysed, based on changes to a single parameter.
        parameter - The single parameter that can be varied.
        Returns:
        The sensitivity function.
      • twoWay

        public SensitivityFunctionTwoWay twoWay​(Evidence evidence,
                                                State hypothesis,
                                                ParameterReference parameter1,
                                                ParameterReference parameter2)
        Calculates how a hypothesis varies based on changes to two parameters.
        Parameters:
        evidence - The evidence.
        hypothesis - The state whose probability is to be analysed, based on changes to a single parameter.
        parameter1 - The first parameter that can be varied.
        parameter2 - The first parameter that can be varied.
        Returns:
        The sensitivity function.