C# 클래스 csEvents.Sensors.MathFunctions

파일 보기 프로젝트 열기: TNOCS/csTouch 1 사용 예제들

공개 메소드들

메소드 설명
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