C# 클래스 BigML.Utils

파일 보기 프로젝트 열기: bigmlcom/bigml-csharp

공개 메소드들

메소드 설명
convertDistributionArrayToMap ( JsonArray distribution ) : double>.Dictionary

We switch the Array to a Map structure in order to be more easily manipulated

convertDistributionMapToSortedArray ( double>.IDictionary distribution ) : JsonArray

We switch the Array to a Map structure in order to be more easily manipulated

isNumericType ( this o ) : bool
meanOfDistribution ( IList distribution ) : double

Computes the mean of a distribution in the [[point, instances]] syntax

meanOfValues ( IList values ) : double

Computes the mean of a list of double values

mergeBins ( double>.IDictionary distribution, int limit ) : double>.Dictionary

Merges the bins of a regression distribution to the given limit number

mergeBins ( JsonArray distribution, int limit ) : JsonArray

Merges the bins of a regression distribution to the given limit number

mergeDistributions ( double>.Dictionary distribution, double>.Dictionary newDistribution ) : double>.Dictionary

Adds up a new distribution structure to a map formatted distribution

printDistribution ( JsonArray distribution ) : StringBuilder

Prints distribution data

roundOff ( double x, int n ) : double

Round a double number x to n decimal places

sameElement ( IList collection, object value ) : bool

Determines if the given collection contain the same value. We will use the contains method of the list to check if the value is inside

메소드 상세

convertDistributionArrayToMap() 공개 정적인 메소드

We switch the Array to a Map structure in order to be more easily manipulated
public static convertDistributionArrayToMap ( JsonArray distribution ) : double>.Dictionary
distribution JsonArray current distribution as an JsonArray instance
리턴 double>.Dictionary

convertDistributionMapToSortedArray() 공개 정적인 메소드

We switch the Array to a Map structure in order to be more easily manipulated
public static convertDistributionMapToSortedArray ( double>.IDictionary distribution ) : JsonArray
distribution double>.IDictionary current distribution as an JsonArray instance
리턴 JsonArray

isNumericType() 공개 정적인 메소드

public static isNumericType ( this o ) : bool
o this
리턴 bool

meanOfDistribution() 공개 정적인 메소드

Computes the mean of a distribution in the [[point, instances]] syntax
public static meanOfDistribution ( IList distribution ) : double
distribution IList /// @return
리턴 double

meanOfValues() 공개 정적인 메소드

Computes the mean of a list of double values
public static meanOfValues ( IList values ) : double
values IList
리턴 double

mergeBins() 공개 정적인 메소드

Merges the bins of a regression distribution to the given limit number
public static mergeBins ( double>.IDictionary distribution, int limit ) : double>.Dictionary
distribution double>.IDictionary
limit int
리턴 double>.Dictionary

mergeBins() 공개 정적인 메소드

Merges the bins of a regression distribution to the given limit number
public static mergeBins ( JsonArray distribution, int limit ) : JsonArray
distribution JsonArray
limit int
리턴 JsonArray

mergeDistributions() 공개 정적인 메소드

Adds up a new distribution structure to a map formatted distribution
public static mergeDistributions ( double>.Dictionary distribution, double>.Dictionary newDistribution ) : double>.Dictionary
distribution double>.Dictionary
newDistribution double>.Dictionary /// @return
리턴 double>.Dictionary

printDistribution() 공개 정적인 메소드

Prints distribution data
public static printDistribution ( JsonArray distribution ) : StringBuilder
distribution JsonArray
리턴 StringBuilder

roundOff() 공개 정적인 메소드

Round a double number x to n decimal places
public static roundOff ( double x, int n ) : double
x double
n int
리턴 double

sameElement() 공개 정적인 메소드

Determines if the given collection contain the same value. We will use the contains method of the list to check if the value is inside
public static sameElement ( IList collection, object value ) : bool
collection IList the list of elements
value object the value to check.
리턴 bool