C# Class csEvents.Sensors.MathFunctions

Afficher le fichier Open project: TNOCS/csTouch Class Usage Examples

Méthodes publiques

Méthode Description
CalculateDifference ( List p1, List p2 ) : double
CalculateReduction ( double>.SortedDictionary input, double percentage ) : double>.SortedDictionary
CalculateReduction ( double>.SortedDictionary input, int amountofpoints ) : double>.SortedDictionary
DouglasPeuckerReduction ( List points, Double tolerance ) : List

Uses the Douglas Peucker algorithm to reduce the number of points.

DouglasPeuckerReductionNoStack ( List points, Double tolerance ) : List
GetAveragePerpendicularDistance ( List points ) : double
PerpendicularDistance ( Point point1, Point point2, Point point ) : Double

The distance of a point from a line made from point1 and point2.

Private Methods

Méthode Description
DouglasPeuckerReduction ( List points, Int32 firstPoint, Int32 lastPoint, Double tolerance, List &pointIndexsToKeep ) : void

Douglases the peucker reduction.

DouglasPeuckerReductionNoStack ( List points, Int32 firstPoint, Int32 lastPoint, Double tolerance, List &pointIndexsToKeep ) : void

Method Details

CalculateDifference() public méthode

public CalculateDifference ( List p1, List p2 ) : double
p1 List
p2 List
Résultat double

CalculateReduction() public méthode

public CalculateReduction ( double>.SortedDictionary input, double percentage ) : double>.SortedDictionary
input double>.SortedDictionary
percentage double
Résultat double>.SortedDictionary

CalculateReduction() public méthode

public CalculateReduction ( double>.SortedDictionary input, int amountofpoints ) : double>.SortedDictionary
input double>.SortedDictionary
amountofpoints int
Résultat double>.SortedDictionary

DouglasPeuckerReduction() public méthode

Uses the Douglas Peucker algorithm to reduce the number of points.
public DouglasPeuckerReduction ( List points, Double tolerance ) : List
points List The points.
tolerance Double The tolerance.
Résultat List

DouglasPeuckerReductionNoStack() public méthode

public DouglasPeuckerReductionNoStack ( List points, Double tolerance ) : List
points List
tolerance Double
Résultat List

GetAveragePerpendicularDistance() public méthode

public GetAveragePerpendicularDistance ( List points ) : double
points List
Résultat double

PerpendicularDistance() public méthode

The distance of a point from a line made from point1 and point2.
public PerpendicularDistance ( Point point1, Point point2, Point point ) : Double
point1 Point
point2 Point
point Point
Résultat Double