C# Класс csEvents.Sensors.MathFunctions

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

CalculateDifference() публичный Метод

public CalculateDifference ( List p1, List p2 ) : double
p1 List
p2 List
Результат double

CalculateReduction() публичный Метод

public CalculateReduction ( double>.SortedDictionary input, double percentage ) : double>.SortedDictionary
input double>.SortedDictionary
percentage double
Результат double>.SortedDictionary

CalculateReduction() публичный Метод

public CalculateReduction ( double>.SortedDictionary input, int amountofpoints ) : double>.SortedDictionary
input double>.SortedDictionary
amountofpoints int
Результат double>.SortedDictionary

DouglasPeuckerReduction() публичный Метод

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.
Результат List

DouglasPeuckerReductionNoStack() публичный Метод

public DouglasPeuckerReductionNoStack ( List points, Double tolerance ) : List
points List
tolerance Double
Результат List

GetAveragePerpendicularDistance() публичный Метод

public GetAveragePerpendicularDistance ( List points ) : double
points List
Результат double

PerpendicularDistance() публичный Метод

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
Результат Double