spis.Util.Func
Class PowerLaw
java.lang.Object
spis.Util.Func.PowerLaw
- All Implemented Interfaces:
- ScalFunctionOfVect
- public class PowerLaw
- extends java.lang.Object
- implements ScalFunctionOfVect
Class Name : PowerLaw
Project ref : SPIS project
File name : PowerLaw.java
File type : class
Copyright : ONERA, 2 Av. E. Belin, 31055 Toulouse cedex, France
http://www.onecert.fr
Status : under development
Creation : Feb 24, 2004
Modification :
Description :
Versions and anomalies correction :
Version number | Author (name, e-mail) | Corrections/Modifications |
0.1 | JF Roussel, roussel@onecert.fr | Creation |
- Version:
- 0.1
- Author:
- JF Roussel
Constructor Summary |
PowerLaw(int dimension,
float[] center,
float exponent,
float normalisation)
Default constructor, sets parameters to define the function:
normalisation * |x - center|^exponent (x = vector of dimension dimension). |
Method Summary |
float |
compute(float[] pos)
Returns: normalisation * |pos - center|^exponent |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PowerLaw
public PowerLaw(int dimension,
float[] center,
float exponent,
float normalisation)
- Default constructor, sets parameters to define the function:
normalisation * |x - center|^exponent (x = vector of dimension dimension).
compute
public float compute(float[] pos)
- Returns: normalisation * |pos - center|^exponent
- Specified by:
compute
in interface ScalFunctionOfVect