Esempio n. 1
0
        /// <summary>
        /// init MCMC
        /// data term has been assigned to the pool
        /// </summary>
        public void Init(LineSegmentConfiguration pool)
        {
            // source line segment list
            _sourceLineSegmentList = new LineSegmentConfiguration(pool);
            // line segment pool
            _lineSegmentPool = new LineSegmentConfiguration(pool);
            _lineSegmentPool.Empty();
            // RJMCMC starts from full line segment configuration
            LineSegmentConfiguration startList = new LineSegmentConfiguration(pool);
            _totalSamples.Add(startList);

            // v(S)
            _vS = LebesgueMeasure(_lamda, _width, _height);
            _totalLineSegment = pool.N;
        }