Esempio n. 1
0
 public BasicSequentialAlgorithmicScheme(BsasArgs args)
 {
     this.thetavalues  = args.Thetavalues;
     this.s            = args.S;
     this.data         = args.Data;
     this.thetaStepNum = args.ThetaStepNum;
 }
 public BasicSequentialAlgorithmicScheme(BsasArgs args)
 {
     this.thetavalues = args.Thetavalues;
     this.s = args.S;
     this.data = args.Data;
     this.thetaStepNum = args.ThetaStepNum;
 }
Esempio n. 3
0
        public int[] Classify()
        {
            var clusterData = features.Select();
            var theta       = MinMaxTheta(clusterData);

            var args = new BsasArgs(theta, m_iterations, clusterData, m_thetaStepNum);

            var bsas     = new BasicSequentialAlgorithmicScheme(args);
            var clusters = bsas.CalculateClasses();
            var kmeans   = new KMeans(clusters, Distance.Euclidean);
            var idx      = kmeans.Compute(clusterData);

            return(idx);
        }
Esempio n. 4
0
        public int[] Classify()
        {
            var clusterData = features.Select();
            var theta = MinMaxTheta(clusterData);

            var args = new BsasArgs(theta, m_iterations, clusterData, m_thetaStepNum);

            var bsas = new BasicSequentialAlgorithmicScheme(args);
            var clusters = bsas.CalculateClasses();
            var kmeans = new KMeans(clusters, Distance.Euclidean);
            var idx = kmeans.Compute(clusterData);

            return idx;
        }