/// <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); }
/// <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(); }
/// <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); }
/// <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; }
/// <summary> /// Adds another control vector /// </summary> /// <param name="other">The other vector</param> public void Add(IControlVector other) { AddInPlace(other); }
/// <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; }