Package stallone.hmm

Examples of stallone.hmm.EM


        boolean eventBased = true;

        // save memory?
        boolean saveMemory = false;

        IExpectationMaximization em = new EM(_obs, eventBased, initialParameters.getNStates(), initialParameters.isReversible(), outputModel, outputEstimator, saveMemory);
        em.setInitialParameters(initialParameters);

        return em;
    }
View Full Code Here


        // count states:
        int nstates = IntSequence.util.max(initialPaths)+1;

        // construct em:
        IExpectationMaximization em = new EM(_obs, eventBased, nstates, reversible, outputModel, outputEstimator, saveMemory);
        // default parameters:
        IHMMParameters par0 = parameters(nstates, reversible, true, outputModel);
        em.setInitialParameters(par0);

        em.setInitialPaths(initialPaths);

        return em;
    }
View Full Code Here

        boolean saveMemory = false;

        // output model and parametrizer
        DiscreteDistribution dd = new DiscreteDistribution(initialParameters.getOutputParameters(0));
        dd.setPrior(prior);
        EM em = new EM(_obs, eventBased, initialParameters.getNStates(), initialParameters.isReversible(), dd, dd, saveMemory);
        em.setInitialParameters(initialParameters);

        return em;
    }
View Full Code Here

        // save memory?
        boolean saveMemory = false;

        // output model and parametrizer
        DiscreteDistribution dd = new DiscreteDistribution(initialParameters.getOutputParameters(0));
        EM em = new EM(_obs, eventBased, initialParameters.getNStates(), initialParameters.isReversible(), dd, dd, saveMemory);
        em.setInitialParameters(initialParameters);

        return em;
    }
View Full Code Here

        // save memory?
        boolean saveMemory = false;
        // output model and parametrizer
        GaussianUnivariate gauss = new GaussianUnivariate(0,1);
        EM em = new EM(_obs, eventBased, initialParameters.getNStates(), initialParameters.isReversible(), gauss, gauss, saveMemory);
        em.setInitialParameters(initialParameters);

        return em;
    }
View Full Code Here

        GaussianUnivariate gauss = new GaussianUnivariate(0,1);

        // count states:
        int nstates = IntSequence.util.max(initialPaths)+1;

        EM em = new EM(_obs, eventBased, nstates, reversible, gauss, gauss, saveMemory);
        em.setInitialPaths(initialPaths);

        return em;
    }
View Full Code Here

TOP

Related Classes of stallone.hmm.EM

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.