Example #1
0
        public Velocity(int numberOfAutomatonSymbols, int numberOfAutomatonStates)
        {
            Velocities = new PartialVelocity[numberOfAutomatonSymbols];

            for (int i = 0; i < Velocities.Length; i++)
                Velocities[i] = new PartialVelocity(numberOfAutomatonStates);
        }
Example #2
0
        /// <summary>
        /// Adds one PartialVelocity instance to other.
        /// </summary>
        public void Add(PartialVelocity pVelocity)
        {
            if(PVelocities.Length != pVelocity.PVelocities.Length)
            {
                throw new ArgumentException("Both partial velocity vectors must be equal in length.");
            }

            for (int i = 0; i < PVelocities.Length; i++)
                PVelocities[i] = pVelocity.PVelocities[i];
        }