|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectspis.Util.Func.ReciprocalFunction
Class Name : ReciprocalFunction
Project ref : SPIS project
File name : ReciprocalFunction.java
File type : class
Copyright : ONERA, 2 Av. E. Belin, 31055 Toulouse cedex, France
http://www.onecert.fr
Status : under development
Creation : 3 nov. 2004
Modification :
Description : Defines the reciprocal function of a given function:
Given y = f(x) in the constructor, this function is x = f-1(y).
Valid only for a monotonic function (increasing or decreasing)
The implementation is through tabulation (parameters requested by the constructors).
Versions and anomalies correction :
Version number | Author (name, e-mail) | Corrections/Modifications |
0.1 | JF Roussel, roussel@onecert.fr | Creation |
Field Summary | |
private boolean |
increasing
if true function is increasing |
private int |
pointNb
number of tabulated poins |
private float[] |
xT
tabulated x values |
private float |
ymax
maximum allowed y value |
private float |
ymin
minimum allowed y value |
private float[] |
yT
tabulated y values (increasing) |
Constructor Summary | |
ReciprocalFunction(ScalFunctionOfScal f,
float xmin,
float xmax,
float firstStep,
float stepRatio)
Constructor with a geometric spacing of tabulated x points. |
|
ReciprocalFunction(ScalFunctionOfScal f,
float xmin,
float xmax,
int stepNb)
Constructor with a linear spacing of tabulated x points |
Method Summary | |
float |
compute(float y)
applies this function to x and returns the result |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private float[] xT
private float[] yT
private int pointNb
private float ymin
private float ymax
private boolean increasing
Constructor Detail |
public ReciprocalFunction(ScalFunctionOfScal f, float xmin, float xmax, int stepNb)
f
- function to be invertedxmin
- Minimum x to be consderedxmax
- Maximum x to be consderedstepNb
- Number of steps to cut the [xmin, xmax] interval intopublic ReciprocalFunction(ScalFunctionOfScal f, float xmin, float xmax, float firstStep, float stepRatio)
f
- function to be invertedxmin
- Minimum x to be consderedxmax
- Maximum x to be consderedfirstStep
- Size of the first x step (xmin -> xmin + firstStep)stepRatio
- Ratio for next stepMethod Detail |
public float compute(float y)
ScalFunctionOfScal
compute
in interface ScalFunctionOfScal
y
-
ScalFunctionOfScal.compute(float)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |