IGLib 1.4
The IGLib base library for development of numerical, technical and business applications.

IG::Num::DistanceComparerVector Class Reference

Inheritance diagram for IG::Num::DistanceComparerVector:
Collaboration diagram for IG::Num::DistanceComparerVector:

List of all members.

Public Member Functions

 DistanceComparerVector (PointContainerVector referencePoint)
 Constructs a new vector comparer according to the distance to the reference point. Default methods for distance calculation is used.
 DistanceComparerVector (PointContainerVector referencePoint, DistanceDelegate< IVector > distanceFunction)
 Constructs a new comparer according to input distance to a reference poiont (type IVector).
 DistanceComparerVector (PointContainerVector referencePoint, DistanceDelegate< IVector > distanceFunction, IVector lengthScales)
 Constructs a new comparer according to input distance to a reference poiont (type IVector).
override void GetPointCoordinates (IVector pt, ref IVector coord)
 Gets vector of coordinates of the specified point and stores it in the specified variable. Where the type of point object itself contains vector of coordinates, only reference is stored. The obtained vector should therefore not be modified in any way.

Constructor & Destructor Documentation

IG::Num::DistanceComparerVector::DistanceComparerVector ( PointContainerVector  referencePoint) [inline]

Constructs a new vector comparer according to the distance to the reference point. Default methods for distance calculation is used.

Parameters:
referencePointReference points.
IG::Num::DistanceComparerVector::DistanceComparerVector ( PointContainerVector  referencePoint,
DistanceDelegate< IVector distanceFunction 
) [inline]

Constructs a new comparer according to input distance to a reference poiont (type IVector).

Parameters:
referencePointReference point. Training elements are compared by their distance to this point.
distanceFunctionDelegate used for calculation of distance between two points.
immutableIf true then a copy of the reference point is stored internally rather than just its reference, so it can not be changed.
IG::Num::DistanceComparerVector::DistanceComparerVector ( PointContainerVector  referencePoint,
DistanceDelegate< IVector distanceFunction,
IVector  lengthScales 
) [inline]

Constructs a new comparer according to input distance to a reference poiont (type IVector).

Parameters:
referencePointReference point. Training elements are compared by their distance to this point.
distanceFunctionDelegate used for calculation of distance between two points.
lengthScalesVector of legth scales that defines how different co-ordinates are scaled by when calculating distances (this applies to the default length calculation function, ).
immutableIf true then a copy of the reference point is stored internally rather than just its reference, so it can not be changed.

Member Function Documentation

override void IG::Num::DistanceComparerVector::GetPointCoordinates ( IVector  pt,
ref IVector  coord 
) [inline]

Gets vector of coordinates of the specified point and stores it in the specified variable. Where the type of point object itself contains vector of coordinates, only reference is stored. The obtained vector should therefore not be modified in any way.

Parameters:
ptPoint for which vector of coordinates is obtained.
coordVector variable where extracted vector of coordinates is stored.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties Events