spis.Util.Func
Class GradPowerLaw

java.lang.Object
  extended byspis.Util.Func.GradPowerLaw
All Implemented Interfaces:
VectFunctionOfVect

public class GradPowerLaw
extends java.lang.Object
implements VectFunctionOfVect

Class Name : GradPowerLaw
Project ref : SPIS project
File name : GradPowerLaw.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
GradPowerLaw(int dimension, float[] center, float exponent, float normalisation)
          Default constructor, sets parameters to define the gradient of the function:
normalisation * |x - center|^exponent (x = vector of dimension dimension).
 
Method Summary
 float[] vectComputeOfVect(float[] pos)
          Returns the gradient of: 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

GradPowerLaw

public GradPowerLaw(int dimension,
                    float[] center,
                    float exponent,
                    float normalisation)
Default constructor, sets parameters to define the gradient of the function:
normalisation * |x - center|^exponent (x = vector of dimension dimension).

Method Detail

vectComputeOfVect

public float[] vectComputeOfVect(float[] pos)
Returns the gradient of: normalisation * |pos - center|^exponent

Specified by:
vectComputeOfVect in interface VectFunctionOfVect