コード例 #1
0
        /// <summary>
        /// Transforms the specified vector.
        /// </summary>
        /// <param name="vector">The vector.</param>
        /// <returns>IStateVector.</returns>
        public IStateVector Transform(IControlVector vector)
        {
            IWritableVector result = new StateVector(Rows);

            Transform(vector, ref result);
            return((IStateVector)result);
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Simulation" /> class.
 /// </summary>
 /// <param name="stateMatrix">The state matrix.</param>
 /// <param name="inputMatrix">The input matrix.</param>
 /// <param name="outputMatrix">The output matrix.</param>
 /// <param name="feedthroughMatrix">The feedthrough matrix.</param>
 /// <param name="initialStateVector">The initial state vector.</param>
 /// <param name="controlVector">The control vector.</param>
 public Simulation(IStateMatrix stateMatrix, IInputMatrix inputMatrix, IOutputMatrix outputMatrix, IFeedthroughMatrix feedthroughMatrix, IStateVector initialStateVector, IControlVector controlVector)
 {
     StateMatrix       = stateMatrix;
     InputMatrix       = inputMatrix;
     OutputMatrix      = outputMatrix;
     FeedthroughMatrix = feedthroughMatrix;
     StateVector       = initialStateVector;
     ControlVector     = controlVector;
     _simulationTime   = new SimulationTime();
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Simulation" /> class.
 /// </summary>
 /// <param name="stateMatrix">The state matrix.</param>
 /// <param name="inputMatrix">The input matrix.</param>
 /// <param name="outputMatrix">The output matrix.</param>
 /// <param name="feedthroughMatrix">The feedthrough matrix.</param>
 /// <param name="initialStateVector">The initial state vector.</param>
 /// <param name="controlVector">The control vector.</param>
 public Simulation(IStateMatrix stateMatrix, IInputMatrix inputMatrix, IOutputMatrix outputMatrix, IFeedthroughMatrix feedthroughMatrix, IStateVector initialStateVector, IControlVector controlVector)
 {
     StateMatrix = stateMatrix;
     InputMatrix = inputMatrix;
     OutputMatrix = outputMatrix;
     FeedthroughMatrix = feedthroughMatrix;
     StateVector = initialStateVector;
     ControlVector = controlVector;
     _simulationTime = new SimulationTime();
 }
コード例 #4
0
 /// <summary>
 /// Transforms the specified vector.
 /// </summary>
 /// <param name="vector">The vector.</param>
 /// <param name="output">The output.</param>
 public void Transform(IControlVector vector, ref IStateVector output)
 {
     IWritableVector result = output;
     Transform(vector, ref result);
 }
コード例 #5
0
 /// <summary>
 /// Transforms the specified vector.
 /// </summary>
 /// <param name="vector">The vector.</param>
 /// <returns>IStateVector.</returns>
 public IStateVector Transform(IControlVector vector)
 {
     IWritableVector result = new StateVector(Rows);
     Transform(vector, ref result);
     return (IStateVector)result;
 }
コード例 #6
0
 /// <summary>
 /// Adds another control vector
 /// </summary>
 /// <param name="other">The other vector</param>
 public void Add(IControlVector other)
 {
     AddInPlace(other);
 }
コード例 #7
0
        /// <summary>
        /// Transforms the specified vector.
        /// </summary>
        /// <param name="vector">The vector.</param>
        /// <param name="output">The output.</param>
        public void Transform(IControlVector vector, ref IStateVector output)
        {
            IWritableVector result = output;

            Transform(vector, ref result);
        }
コード例 #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ControlEventArgs" /> class.
 /// </summary>
 /// <param name="time">The time.</param>
 /// <param name="controlVector">The control vector.</param>
 public ControlEventArgs(ISimulationTime time, IControlVector controlVector)
     : base(time)
 {
     ControlVector = controlVector;
 }
コード例 #9
0
 /// <summary>
 /// Adds another control vector
 /// </summary>
 /// <param name="other">The other vector</param>
 public void Add(IControlVector other)
 {
     AddInPlace(other);
 }
コード例 #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ControlEventArgs" /> class.
 /// </summary>
 /// <param name="time">The time.</param>
 /// <param name="controlVector">The control vector.</param>
 public ControlEventArgs(ISimulationTime time, IControlVector controlVector)
     : base(time)
 {
     ControlVector = controlVector;
 }