spis.Util.Func
Class CosMultiD

java.lang.Object
  extended byspis.Util.Func.CosMultiD
All Implemented Interfaces:
ScalFunctionOfVect

public class CosMultiD
extends java.lang.Object
implements ScalFunctionOfVect

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

Description : Product of cosine functions of each coordinate (usually 3):
(cos(kx+phix) * cos(ky+phiy) * cos(kz+phyz) ...) * norm.

Versions and anomalies correction :

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


Version:
0.1
Author:
JF Roussel

Constructor Summary
CosMultiD(int dimension, float[] waveNumber, float[] phase, float normalisation)
          Default constructor, sets parameters to define the function:
(cos(kx+phix) * cos(ky+phiy) * cos(kz+phyz)...) * norm
with k=waveNumber, phi=phase, norm=normalisation (dim=3 in this expression.
 
Method Summary
 float compute(float[] vect)
          Returns (cos(kx+phix) * cos(ky+phiy) * cos(kz+phyz)) * norm (and more if dim larger than 3), where vect = (x, y, z, ...)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CosMultiD

public CosMultiD(int dimension,
                 float[] waveNumber,
                 float[] phase,
                 float normalisation)
Default constructor, sets parameters to define the function:
(cos(kx+phix) * cos(ky+phiy) * cos(kz+phyz)...) * norm
with k=waveNumber, phi=phase, norm=normalisation (dim=3 in this expression.

Method Detail

compute

public float compute(float[] vect)
Returns (cos(kx+phix) * cos(ky+phiy) * cos(kz+phyz)) * norm (and more if dim larger than 3), where vect = (x, y, z, ...)

Specified by:
compute in interface ScalFunctionOfVect