All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.meliorbis.numerics.markov.DiscreteMarkovProcessImpl Maven / Gradle / Ivy

Go to download

A library for working with large multi-dimensional arrays and the functions they represent

There is a newer version: 1.2
Show newest version
package com.meliorbis.numerics.markov;

import com.meliorbis.numerics.generic.primitives.DoubleArray;

/**
 * A discrete markov process defines the discrete available levels and the matrix of transition provabilities between
 * levels
 */
public class DiscreteMarkovProcessImpl implements DiscreteMarkovProcess
{
    private final DoubleArray _levels;
    private final DoubleArray _transitionProbabilities;


    public DiscreteMarkovProcessImpl(DoubleArray levels_, DoubleArray transitionProbabilities_)
    {
        _levels = levels_;
        _transitionProbabilities = transitionProbabilities_;
    }

    /**
     * A vector of available levels the process can attain
     *
     * @return A one-dimensional array containing the levels
     */
    @Override
    public DoubleArray getLevels()
    {
        return _levels;
    }

    /**
     * A matrix of transition probabilities between levels
     *
     * @return A two-dimensional array of transition probabilities
     */
    @Override
    public DoubleArray getTransitionProbabilities()
    {
        return _transitionProbabilities;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy