static void labeledStorageTest() { LabeledStorage<string> testing = new LabeledStorage<string>(); testing.Add("A", "letter", "uppercase", "a"); testing.Add("C", "letter", "uppercase", "c"); testing.Add("B", "letter", "uppercase", "b"); testing.Add("b", "letter", "lowercase", "b"); testing.Add("D", "letter", "uppercase", "d"); testing.Add("e", "letter", "lowercase", "e"); testing.Add("f", "letter", "lowercase", "f"); testing.Add("F", "letter", "uppercase", "f"); testing.Add("g", "letter", "lowercase", "g"); testing["g"].PrintToOutputWindow(); testing.LookupValue("uppercase").PrintToOutputWindow(); //Debug.Print(string.Concat(testing.LookupValue("uppercase").Select(i => i.ToString() + "\n"))); }
static void Main(string[] args) { //Open some input object //Generate heuristics from that input object (possibly do some iterations) //Add the input object and labels to dictionary //Perform a probabilistic lookup against the library LabeledStorage<string> testing = new LabeledStorage<string>(); //SignalGenerator.GaussianDistribution(10000).GetHistogram(.1).Graph(); //SignalGenerator.PowerLawDistribution(100000).GetHistogram(10).GraphLogLog(); //Random rand = new Random(); //Signal randomNumbers = new Signal(); //for(int i=0; i< 100000; i++){ // randomNumbers.Add(rand.NextDouble()); //} //randomNumbers.GetHistogram(.0005).GetSignal().GetHistogram(1).Graph(); }