spis.Util.Func
Class PowerLaw

java.lang.Object
  extended byspis.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 numberAuthor (name, e-mail) Corrections/Modifications
0.1 JF Roussel, roussel@onecert.frCreation


Version:
0.1
Author:
JF Roussel

Field Summary
private  float[] centre
          Centre location
private  int dim
          Vector dimension
private  float exp
          Exponent
private  float norm
          Normalisation of the function
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dim

private int dim
Vector dimension


centre

private float[] centre
Centre location


exp

private float exp
Exponent


norm

private float norm
Normalisation of the function

Constructor Detail

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).

Method Detail

compute

public float compute(float[] pos)
Returns: normalisation * |pos - center|^exponent

Specified by:
compute in interface ScalFunctionOfVect