예제 #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            EmoClassifier.Matrix x = new EmoClassifier.Matrix(2, 1);
            x[0, 0] = 3;
            x[1, 0] = 2;
            EmoClassifier.Matrix mu = new EmoClassifier.Matrix(2, 1);
            mu[0, 0] = 1;
            mu[1, 0] = 4;
            EmoClassifier.Matrix sigma = new EmoClassifier.Matrix(2, 2);
            sigma[0, 0] = 1;
            sigma[1, 0] = 4;
            sigma[0, 1] = 1;
            sigma[1, 1] = 2;

            double res = EmoClassifier.GaussDistrib.Probability(x, mu, sigma);

            EmoClassifier.Matrix mat = new EmoClassifier.Matrix(EmoClassifier.Classifiers.GMM.sigma0);
        }
예제 #2
0
파일: Form1.cs 프로젝트: tdav/emocije
        private void button2_Click(object sender, EventArgs e)
        {
            EmoClassifier.Matrix x = new EmoClassifier.Matrix(2,1);
            x[0,0] = 3;
            x[1,0] = 2;
            EmoClassifier.Matrix mu = new EmoClassifier.Matrix(2,1);
            mu[0,0] = 1;
            mu[1,0] = 4;
            EmoClassifier.Matrix sigma = new EmoClassifier.Matrix(2,2);
            sigma[0,0] = 1;
            sigma[1,0] = 4;
            sigma[0,1] = 1;
            sigma[1,1] = 2;

            double res = EmoClassifier.GaussDistrib.Probability(x, mu, sigma);

            EmoClassifier.Matrix mat = new EmoClassifier.Matrix(EmoClassifier.Classifiers.GMM.sigma0);
        }