コード例 #1
0
ファイル: WekaHelper.cs プロジェクト: caomw/Multiwave
 public static void initialize()
 {
     //read classifier
     cls = (Classifier)weka.core.SerializationHelper.read("../../ClassifierNB.model");
     EC  = new ExperimentControl();
     EC.Initialize();
 }
コード例 #2
0
        private void experimentButton_CheckedChanged(object sender, EventArgs e)
        {
            if (experimentButton.Checked)
            {
                // removing second side bar from view, if there is one, and removing its context too
                this.sideBarPanel.Controls.Clear();
                this._contentPanel.Controls.Clear();

                ExperimentControl experimentControl = new ExperimentControl();
                this.sideBarPanel.Controls.Add(experimentControl);
                currentPanelContent = experimentControl;
            }
        }
コード例 #3
0
 // Start is called before the first frame update
 void Awake()
 {
     // Checks to make sure this is the only Research Assistant Present in Scene
     if (control == null)
     {
         DontDestroyOnLoad(gameObject);
         control = this;
     }
     else if (control != this)
     {
         Destroy(gameObject);
     }
 }
コード例 #4
0
 private void Awake()
 {
     control = GameObject.Find("ExperimentControl").GetComponent <ExperimentControl>();
     KeyLogs = control.data;
 }
コード例 #5
0
 void Awake()
 {
     this.dataItem = transform.GetChild(0);
     this.player = GameObject.Find("Player");
     this.experimentCtrl = this.player.GetComponent<ExperimentControl>();
 }