C# 클래스 Gbdx.Aggregations.PivotTableAnalyzer

파일 보기 프로젝트 열기: DigitalGlobe/DGConnect-ESRI 1 사용 예제들

공개 메소드들

메소드 설명
CalculateDiffs ( PivotTableEntry a, PivotTableEntry b ) : Double>.Dictionary

Calculates the difference between the values in entry a and b. The resulting distribution is normalized to a value between 0 and 1

DetectChange ( PivotTable ptA, PivotTable ptB, string label, bool diffs ) : PivotTable

Compares two pivot tables. Do not pass in columns that don't make sense to compare. This method encapsulates a cosine similarity calculation on geohash cell pairs, and subsequently, each pair also calculates a diff between each col pair as a quasi percentage diff.

FileToPivotTable ( String file, string rowkeyColumnName ) : PivotTable

Converts a csv file to a pivot table.

GenerateAverageVector ( PivotTable tableWithMoreThanOneRow ) : PivotTable
GetSimilarityGraph ( PivotTable signature ) : Dictionary>
GetSparseSimilarites ( PivotTableEntry baseVector, PivotTable vectors, bool logarithm, bool onlyBase ) : PivotTable
GetSparseSimilarity ( PivotTableEntry a, PivotTableEntry b, bool logarithm, bool onlyBase ) : PivotTableAnalysisResult

Returns a PivotTableAnalysisResult with an empty Data dictionary but with a prob score set to the cosine similarity value of the two input vector spaces. Look here for more info: https://upload.wikimedia.org/math/4/e/4/4e45dc7ae582130813e804f793f24ead.png

PivotTableAnalyzer ( SendAnInt pbarValueUpdate, UpdateAggWindowPbar pbarUpdate ) : System
avg ( List nums ) : double
flattenAndSimplify ( PivotTable withMultipleCompares, String pivCol ) : PivotTable
max ( List nums ) : double
min ( List nums ) : double
stdev ( List list ) : double

메소드 상세

CalculateDiffs() 공개 메소드

Calculates the difference between the values in entry a and b. The resulting distribution is normalized to a value between 0 and 1
public CalculateDiffs ( PivotTableEntry a, PivotTableEntry b ) : Double>.Dictionary
a PivotTableEntry
b PivotTableEntry
리턴 Double>.Dictionary

DetectChange() 공개 메소드

Compares two pivot tables. Do not pass in columns that don't make sense to compare. This method encapsulates a cosine similarity calculation on geohash cell pairs, and subsequently, each pair also calculates a diff between each col pair as a quasi percentage diff.
public DetectChange ( PivotTable ptA, PivotTable ptB, string label, bool diffs ) : PivotTable
ptA PivotTable
ptB PivotTable
label string
diffs bool
리턴 PivotTable

FileToPivotTable() 공개 메소드

Converts a csv file to a pivot table.
public FileToPivotTable ( String file, string rowkeyColumnName ) : PivotTable
file String
rowkeyColumnName string
리턴 PivotTable

GenerateAverageVector() 공개 메소드

public GenerateAverageVector ( PivotTable tableWithMoreThanOneRow ) : PivotTable
tableWithMoreThanOneRow PivotTable
리턴 PivotTable

GetSimilarityGraph() 공개 메소드

public GetSimilarityGraph ( PivotTable signature ) : Dictionary>
signature PivotTable
리턴 Dictionary>

GetSparseSimilarites() 공개 메소드

public GetSparseSimilarites ( PivotTableEntry baseVector, PivotTable vectors, bool logarithm, bool onlyBase ) : PivotTable
baseVector PivotTableEntry
vectors PivotTable
logarithm bool
onlyBase bool
리턴 PivotTable

GetSparseSimilarity() 공개 메소드

Returns a PivotTableAnalysisResult with an empty Data dictionary but with a prob score set to the cosine similarity value of the two input vector spaces. Look here for more info: https://upload.wikimedia.org/math/4/e/4/4e45dc7ae582130813e804f793f24ead.png
public GetSparseSimilarity ( PivotTableEntry a, PivotTableEntry b, bool logarithm, bool onlyBase ) : PivotTableAnalysisResult
a PivotTableEntry
b PivotTableEntry
logarithm bool
onlyBase bool
리턴 PivotTableAnalysisResult

PivotTableAnalyzer() 공개 메소드

public PivotTableAnalyzer ( SendAnInt pbarValueUpdate, UpdateAggWindowPbar pbarUpdate ) : System
pbarValueUpdate SendAnInt
pbarUpdate UpdateAggWindowPbar
리턴 System

avg() 공개 메소드

public avg ( List nums ) : double
nums List
리턴 double

flattenAndSimplify() 공개 메소드

public flattenAndSimplify ( PivotTable withMultipleCompares, String pivCol ) : PivotTable
withMultipleCompares PivotTable
pivCol String
리턴 PivotTable

max() 공개 메소드

public max ( List nums ) : double
nums List
리턴 double

min() 공개 메소드

public min ( List nums ) : double
nums List
리턴 double

stdev() 공개 메소드

public stdev ( List list ) : double
list List
리턴 double