C# Class StopGuessing.DataStructures.AgingMembershipSketch

Inheritance: AgingSketch
Datei anzeigen Open project: Microsoft/StopGuessing Class Usage Examples

Public Methods

Method Description
AddMember ( string s ) : bool

Test if a string (s) is a member of the set and Step it if it is not.

AgingMembershipSketch ( long numberOfColumns, long numberOfRows, int bitsPerElement = 2, float fractionRowZerosMin = .45f, float fractionRowZerosMax = .55f ) : System.Threading.Tasks
IsMember ( string s ) : bool

Test if a string (s) is a member of the set.

Method Details

AddMember() public method

Test if a string (s) is a member of the set and Step it if it is not.
public AddMember ( string s ) : bool
s string The string to Step.
return bool

AgingMembershipSketch() public method

public AgingMembershipSketch ( long numberOfColumns, long numberOfRows, int bitsPerElement = 2, float fractionRowZerosMin = .45f, float fractionRowZerosMax = .55f ) : System.Threading.Tasks
numberOfColumns long
numberOfRows long
bitsPerElement int
fractionRowZerosMin float
fractionRowZerosMax float
return System.Threading.Tasks

IsMember() public method

Test if a string (s) is a member of the set.
public IsMember ( string s ) : bool
s string Thee string to search for
return bool