C# 클래스 QACExperimenter.Utilities

파일 보기 프로젝트 열기: stewhir/recent-robust-qac

공개 메소드들

메소드 설명
CountInstancesOfCharacters ( string inString, char character ) : int
DateTimeToUnixTimestamp ( System.DateTime dateTime ) : int
GetPrefix ( string query, int prefixLength ) : string

Extract the prefix from a query, returns the prefix of length prefixLength, or null if the query is not long enough to extract a prefix from

SigmoidFunction ( double x, double max, double k, double n ) : double

Implements a sigmoid function with the parameters: y = max · k n / (k n + x n) (Returns Y value). See: http://numberlinx.org/Sigmoid%20Curves.html for visual parameter tuning examples.

메소드 상세

CountInstancesOfCharacters() 공개 정적인 메소드

public static CountInstancesOfCharacters ( string inString, char character ) : int
inString string
character char
리턴 int

DateTimeToUnixTimestamp() 공개 정적인 메소드

public static DateTimeToUnixTimestamp ( System.DateTime dateTime ) : int
dateTime System.DateTime
리턴 int

GetPrefix() 공개 정적인 메소드

Extract the prefix from a query, returns the prefix of length prefixLength, or null if the query is not long enough to extract a prefix from
public static GetPrefix ( string query, int prefixLength ) : string
query string
prefixLength int
리턴 string

SigmoidFunction() 공개 정적인 메소드

Implements a sigmoid function with the parameters: y = max · k n / (k n + x n) (Returns Y value). See: http://numberlinx.org/Sigmoid%20Curves.html for visual parameter tuning examples.
public static SigmoidFunction ( double x, double max, double k, double n ) : double
x double X value
max double Maximum value
k double Half-maximum
n double Steepness
리턴 double