C# Class Gbdx.Aggregations.PivotTableAnalyzer

Afficher le fichier Open project: DigitalGlobe/DGConnect-ESRI Class Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

CalculateDiffs() public méthode

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
Résultat Double>.Dictionary

DetectChange() public méthode

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
Résultat PivotTable

FileToPivotTable() public méthode

Converts a csv file to a pivot table.
public FileToPivotTable ( String file, string rowkeyColumnName ) : PivotTable
file String
rowkeyColumnName string
Résultat PivotTable

GenerateAverageVector() public méthode

public GenerateAverageVector ( PivotTable tableWithMoreThanOneRow ) : PivotTable
tableWithMoreThanOneRow PivotTable
Résultat PivotTable

GetSimilarityGraph() public méthode

public GetSimilarityGraph ( PivotTable signature ) : Dictionary>
signature PivotTable
Résultat Dictionary>

GetSparseSimilarites() public méthode

public GetSparseSimilarites ( PivotTableEntry baseVector, PivotTable vectors, bool logarithm, bool onlyBase ) : PivotTable
baseVector PivotTableEntry
vectors PivotTable
logarithm bool
onlyBase bool
Résultat PivotTable

GetSparseSimilarity() public méthode

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
Résultat PivotTableAnalysisResult

PivotTableAnalyzer() public méthode

public PivotTableAnalyzer ( SendAnInt pbarValueUpdate, UpdateAggWindowPbar pbarUpdate ) : System
pbarValueUpdate SendAnInt
pbarUpdate UpdateAggWindowPbar
Résultat System

avg() public méthode

public avg ( List nums ) : double
nums List
Résultat double

flattenAndSimplify() public méthode

public flattenAndSimplify ( PivotTable withMultipleCompares, String pivCol ) : PivotTable
withMultipleCompares PivotTable
pivCol String
Résultat PivotTable

max() public méthode

public max ( List nums ) : double
nums List
Résultat double

min() public méthode

public min ( List nums ) : double
nums List
Résultat double

stdev() public méthode

public stdev ( List list ) : double
list List
Résultat double