Package stallone.hmm

Examples of stallone.hmm.HMMParameters


        }
    }

    public IHMMParameters parameters(int nstates, boolean _isReversible, boolean _isStationary)
    {
        IHMMParameters par = new HMMParameters(nstates, _isReversible, _isStationary);
        // initialize transition matrix
        IDoubleArray T0 = doublesNew.matrix(nstates,nstates);
        doubles.fill(T0, 1.0/(double)nstates);
        par.setTransitionMatrix(T0);
        return par;
    }
View Full Code Here


        // initial p0
        IDoubleArray p0 = Doubles.create.array(nstates, 1.0/(double)nstates);
        // initial output parameters
        IDoubleArray[] parOut = initialParametersGaussian(_obs, nstates);
        // initial parameters
        IHMMParameters initialParameters = new HMMParameters(T, p0, parOut, false, true);

        return emGaussian(_obs, initialParameters);
    }
View Full Code Here

TOP

Related Classes of stallone.hmm.HMMParameters

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.