Package examples.montecarlo
Class TestMetropolisHastings.Function
- java.lang.Object
-
- examples.montecarlo.TestMetropolisHastings.Function
-
- All Implemented Interfaces:
FunctionIfc
- Enclosing class:
- TestMetropolisHastings
public static class TestMetropolisHastings.Function extends java.lang.Object implements FunctionIfc
-
-
Constructor Summary
Constructors Constructor Description Function()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
fx(double x)
Returns the value of the function for the specified variable value.
-
-
-
Method Detail
-
fx
public double fx(double x)
Description copied from interface:FunctionIfc
Returns the value of the function for the specified variable value.- Specified by:
fx
in interfaceFunctionIfc
- Parameters:
x
- the input value- Returns:
- the function value
-
-