Exemple #1
0
        public VisualizationForm(ReceiverOperatingCharacteristic roc, String windowTitle)
        {
            InitializeComponent();
            ScatterPlotForm sp = new ScatterPlotForm(roc.GetScatterplot(true));

            sp.Show();
        }
Exemple #2
0
        private void visualize()
        {
            switch (_visualizationType)
            {
            case VisualizationType.COMPONENTS_CUMULATIVE:
            {
                if (_visualizationSource != null)
                {
                    if (_visualizationSource.GetType() == typeof(PrincipalComponentAnalysis))
                    {
                        PrincipalComponentAnalysis pca = (PrincipalComponentAnalysis)_visualizationSource;
                        VisualizationForm          f   = new VisualizationForm(pca.Components, true, "Cumulative Component Distribution");
                        f.Show();
                    }
                }

                break;
            }

            case VisualizationType.COMPONENTS_DISTRIBUTION:
            {
                if (_visualizationSource != null)
                {
                    if (_visualizationSource.GetType() == typeof(PrincipalComponentAnalysis))
                    {
                        PrincipalComponentAnalysis pca = (PrincipalComponentAnalysis)_visualizationSource;
                        VisualizationForm          f   = new VisualizationForm(pca.Components, false, "Component Distribution");
                        f.Show();
                    }
                }
                break;
            }

            case VisualizationType.ROC_PLOT_POINTS:
            {
                if (_visualizationSource != null)
                {
                    if (_visualizationSource.GetType() == typeof(ReceiverOperatingCharacteristic))
                    {
                        ReceiverOperatingCharacteristic roc = (ReceiverOperatingCharacteristic)_visualizationSource;
                        ScatterPlotForm sp = new ScatterPlotForm(roc.GetScatterplot(true));
                        sp.Show();
                    }
                }
                break;
            }

            default:
            {
                break;
            }
            }
        }