spis.Util.Func
Class Exp

java.lang.Object
  extended byspis.Util.Func.Exp
All Implemented Interfaces:
ScalFunctionOfScal

public class Exp
extends java.lang.Object
implements ScalFunctionOfScal

Class Name : Exp
Project ref : SPIS project
File name : Exp.java
File type : class
Copyright : ONERA, 2 Av. E. Belin, 31055 Toulouse cedex, France http://www.onecert.fr
Status : under development
Creation : Feb 26, 2004
Modification :

Description :

Versions and anomalies correction :

Version numberAuthor (name, e-mail) Corrections/Modifications
0.1 JF Roussel, roussel@onecert.frCreation


Version:
0.1
Author:
JF Roussel

Field Summary
private  float x0
          Normalisation constant of argument
private  float y0
          Normalisation constant of result
 
Constructor Summary
Exp(float y0_, float x0_)
          Constructor with y0 and x0 constants to define f(x) = y0*exp(x/x0).
 
Method Summary
 void apply(float[] x, int n)
           
 float compute(float x)
          applies this function to x and returns the result
 void compute(float[] x, int n, float[] y)
          applies this exponential to the array x (0 to n-1 elements) and assigns the result to y
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

y0

private float y0
Normalisation constant of result


x0

private float x0
Normalisation constant of argument

Constructor Detail

Exp

public Exp(float y0_,
           float x0_)
Constructor with y0 and x0 constants to define f(x) = y0*exp(x/x0).

Method Detail

compute

public float compute(float x)
Description copied from interface: ScalFunctionOfScal
applies this function to x and returns the result

Specified by:
compute in interface ScalFunctionOfScal

compute

public void compute(float[] x,
                    int n,
                    float[] y)
applies this exponential to the array x (0 to n-1 elements) and assigns the result to y


apply

public void apply(float[] x,
                  int n)