public void menueChanged(GenericMenueComponent changedComponent)
    {
        if (menue == null)
        {
            Debug.Log("Did not find a valid menue!");
            return;
        }

        string name = changedComponent.getName();

        if (name.Equals("showXAxis"))
        {
            Debug.Log("New value for showXAxis: " + menue.getToggleValue(changedComponent.getId()));
            // Do something with the value.
        }
        if (name.Equals("showYAxis"))
        {
            Debug.Log("New value for showYAxis: " + menue.getToggleValue(changedComponent.getId()));
            // Do something with the value.
        }
        if (name.Equals("showZAxis"))
        {
            Debug.Log("New value for showZAxis: " + menue.getToggleValue(changedComponent.getId()));
            // Do something with the value.
        }

        //change if the KMean should run until convergence or not
//        if (name.Equals("KMeanConvergence"))
//        {
//            if (!KMeansClusteringOperator.Convergence)
//            {
//                KMeansClusteringOperator.Convergence = true;
//            }
//            else
//            {
//                KMeansClusteringOperator.Convergence = false;
//            }
//        }
    }
    public void menueChanged(GenericMenueComponent changedComponent)
    {
        if (menue == null)
        {
            Debug.Log("Did not find a valid menue!");
            return;
        }

        string name = changedComponent.getName();


        //change if the KMean should run until convergence or not
        if (name.Equals("KMeanConvergence"))
        {
            if (!Convergence)
            {
                Convergence = true;
            }
            else
            {
                Convergence = false;
            }
        }
    }