Пример #1
0
 private void Update()
 {
     if (KNN.KNNMode && KNN.KNNMove)
     {
         NewDataPoint.ChangeDataPoint();
         KNN.KNNMove = false;
     }
 }
Пример #2
0
    public void UpdateK()
    {
        string kValue = KUpdate.GetComponent <InputField>().text;

        if (Convert.ToInt32(kValue) < 1)
        {
            kValue = "1";
        }

        if (Convert.ToInt32(kValue) > CSVläsare.pointList.Count())
        {
            kValue = CSVläsare.pointList.Count().ToString();
        }

        KNN.kValue = Convert.ToInt32(kValue);

        NewDataPoint.ChangeDataPoint();
    }
Пример #3
0
    // Update is called once per frame
    private void Update()
    {
        // Codeblock for EditPosition
        if (TargetingScript.selectedTarget != null)
        {
            EditPanel.SetActive(true);
            ChangePanelColumnText.text = TargetingScript.selectedTarget.GetComponent <StoreIndexInDataBall>().TargetFeature;
            Denormalize();
        }
        else
        {
            EditPanel.SetActive(false);
        }

        // Codeblock for KNN
        if (KNN.KNNMode && KNN.KNNMove)
        {
            NewDataPoint.ChangeDataPoint();
            KNN.KNNMove = false;
        }
    }