//Idem private void stopRecording() { record = false; float[] p = phrase.ToArray(); string[] colNames = { "mouseX", "mouseY" }; ts.AddPhraseFromData(label, colNames, p, 2, 0); hhmm.Train(ts); hhmm.Reset(); }
public void Recording(string label, List <float> phrase, string type) { // record = false; float[] p = phrase.ToArray(); int inDim = 0; int outDim = 0; string[] colNames = new string[0]; inDim = 3; outDim = 0; colNames = new string[3]; colNames = colNames3D; ts.AddPhraseFromData(label, colNames, p, inDim, outDim); hhmm.Train(ts); hhmm.Reset(); displayText.text = ""; displayText2.text = "label being recorded is " + label; }