12#ifndef __CODAC_TRAJECTORYVECTOR_H__
13#define __CODAC_TRAJECTORYVECTOR_H__
17#include <initializer_list>
20#include "codac_TFunction.h"
91 explicit TrajectoryVector(
const std::list<double>& list_t,
const std::list<Vector>& list_x);
269 void set(
const Vector& y,
double t);
497 const std::string
class_name()
const {
return "TrajectoryVector"; };
Abstract class for common properties of Tube, TubeVector, Slice, Trajectory, TrajectoryVector objects...
Definition codac_DynamicalItem.h:26
One dimensional trajectory , defined as a temporal map of values.
Definition codac_Trajectory.h:35
n-dimensional trajectory , defined as a temporal map of vector values
Definition codac_TrajectoryVector.h:38
TrajectoryVector & make_continuous()
Makes a trajectory continuous by avoiding infinite slopes.
Trajectory & operator[](int index)
Returns the ith Trajectory of this TrajectoryVector.
const TrajectoryVector & operator+=(double x)
Operates +=.
const TrajectoryVector & operator/=(const Trajectory &x)
Operates /=.
void resize(int n)
Resizes this TrajectoryVector.
const TrajectoryVector subvector(int start_index, int end_index) const
Returns a subvector of this TrajectoryVector.
TrajectoryVector()
Creates an undefined n-dimensional trajectory.
Trajectory * m_v_trajs
array of components (scalar trajectories)
Definition codac_TrajectoryVector.h:531
const std::string class_name() const
Returns the name of this class.
Definition codac_TrajectoryVector.h:497
TrajectoryVector(int n, const Trajectory &x)
Creates a n-dimensional trajectory with all the components initialized to .
int size() const
Returns the dimension of the trajectory.
TrajectoryVector & sample(const TrajectoryVector &x)
Samples this trajectory so that it will share the same sampling of .
const TrajectoryVector & operator*=(const Trajectory &x)
Operates *=.
TrajectoryVector(const TrajectoryVector &traj)
Creates a copy of a n-dimensional trajectory .
TrajectoryVector(int n)
Creates a n-dimensional trajectory .
const IntervalVector codomain() const
Returns the box of feasible values.
const TrajectoryVector & operator+=(const TrajectoryVector &x)
Operates +=.
const TrajectoryVector & operator+=(const Trajectory &x)
Operates +=.
int m_n
dimension of this trajectory
Definition codac_TrajectoryVector.h:530
bool not_defined() const
Tests whether this trajectory is defined or not.
const Trajectory & operator[](int index) const
Returns a const reference to the ith Trajectory of this TrajectoryVector.
TrajectoryVector(const std::list< double > &list_t, const std::list< Vector > &list_x)
Creates a n-dimensional trajectory from a list of vector values.
TrajectoryVector & sample(double timestep)
Transforms an analytic trajectory as a map of values.
TrajectoryVector & truncate_tdomain(const Interval &tdomain)
Truncates the tdomain of .
const IntervalVector operator()(const Interval &t) const
Returns the interval evaluation of this trajectory over .
const TrajectoryVector & operator-=(const Trajectory &x)
Operates -=.
bool same_tdomain_forall_components() const
Checks whether all the Trajectory components have the same tdomain or not.
const IntervalVector codomain_box() const
Returns the box .
const TrajectoryVector diff() const
Differentiates this trajectory vector.
friend void deserialize_TrajectoryVector(std::ifstream &bin_file, TrajectoryVector *&traj)
Creates a TrajectoryVector object from a binary file.
const Vector last_value() const
Returns the value .
const Vector first_value() const
Returns the value .
TrajectoryVector & shift_tdomain(double a)
Shifts the tdomain of .
TrajectoryVector(const Interval &tdomain, const TFunction &f, double timestep)
Creates a n-dimensional trajectory from an analytic expression, and transforms it as a map of values...
bool operator!=(const TrajectoryVector &x) const
Returns true if this trajectory is different from .
const TrajectoryVector & operator*=(double x)
Operates *=.
const Vector operator()(double t) const
Returns the evaluation of this trajectory at .
const TrajectoryVector & operator+=(const Vector &x)
Operates +=.
const Interval tdomain() const
Returns the temporal definition domain of this trajectory.
friend std::ostream & operator<<(std::ostream &str, const TrajectoryVector &x)
Displays a synthesis of this trajectory.
const TrajectoryVector & operator/=(double x)
Operates /=.
TrajectoryVector(const Interval &tdomain, const TFunction &f)
Creates a n-dimensional trajectory from an analytic expression.
TrajectoryVector(std::initializer_list< Trajectory > list)
Creates a n-dimensional trajectory from a list of Trajectory objects.
const TrajectoryVector & operator=(const TrajectoryVector &x)
Returns a copy of a TrajectoryVector.
const TrajectoryVector & operator-=(double x)
Operates -=.
const TrajectoryVector & operator-=(const TrajectoryVector &x)
Operates -=.
void put(int start_index, const TrajectoryVector &subvec)
Puts a subvector into this TrajectoryVector at a given position.
const TrajectoryVector & operator-=(const Vector &x)
Operates -=.
const TrajectoryVector primitive(const Vector &c) const
Computes an approximative primitive of .
TrajectoryVector & sample(const Trajectory &x)
Samples this trajectory so that it will share the same sampling of .
void set(const Vector &y, double t)
Sets a value at : .
~TrajectoryVector()
TrajectoryVector destructor.
bool operator==(const TrajectoryVector &x) const
Returns true if this trajectory is equal to .
TrajectoryVector(const std::vector< std::map< double, double > > &v_map_values)
Creates a n-dimensional trajectory from a vector of maps of scalar values.
TrajectoryVector(const std::map< double, Vector > &m_map_values)
Creates a n-dimensional trajectory from a map of vector values.
const TrajectoryVector primitive(const Vector &c, double timestep) const
Computes an approximative primitive of with some time discretization .
n-dimensional tube , defined as an interval of n-dimensional trajectories
Definition codac_TubeVector.h:39
FixPoint of a separator The fixpoint of a separator is computed by calling the "::"separate function ...
Definition codac_capd_helpers.h:9