spis.Util.Func
Class DistToPoint
java.lang.Object
spis.Util.Func.DistToPoint
- All Implemented Interfaces:
- ScalFunctionOfVect
- public class DistToPoint
- extends java.lang.Object
- implements ScalFunctionOfVect
Class Name : DistToPoint
Project ref : SPIS project
File name : DistToPoint.java
File type : class
Copyright : ONERA, 2 Av. E. Belin, 31055 Toulouse cedex, France
http://www.onecert.fr
Status : under development
Creation : Jun 16, 2004
Modification :
Description : returns the diatance to an origin point, raised to a given power.
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 |
DistToPoint(float[] origin_,
float exponent)
|
Method Summary |
float |
compute(float[] vect)
returns dist(vect, origin) to the power exp |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DistToPoint
public DistToPoint(float[] origin_,
float exponent)
compute
public float compute(float[] vect)
- returns dist(vect, origin) to the power exp
- Specified by:
compute
in interface ScalFunctionOfVect