KJB
|
Classes | |
class | Activity_library |
class | Activity_sequence |
class | Output_activity |
class | Get_name |
class | Get_start |
class | Get_end |
class | Get_trajectories |
class | Activity_sequence_prior |
struct | Group |
Group. More... | |
class | Association |
class | Association_prior |
class | Data |
class | Description |
class | Description_info |
Extract sparse information from description (for write()). More... | |
class | Description_prior |
class | Sample_tree |
struct | Endpoint |
Class that holds information for endpoints. More... | |
class | Intentional_activity |
class | Likelihood |
class | Parameter_prior |
class | Physical_activity |
class | Traj_set |
class | Trajectory |
class | Trajectory_prior |
class | Visualizer |
Visualize a description and the corresponding data. More... | |
Typedefs | |
typedef Activity_sequence_prior | As_prior |
typedef std::vector< Endpoint > | Endpoint_set |
Functions | |
template<class A > | |
bool | same_activity (const Activity_sequence::Activity &activity, const A &piact) |
Determines whether two activities are the same. More... | |
std::ostream & | operator<< (std::ostream &ost, const Activity_sequence &aseq) |
Push an activity sequence to an output stream. More... | |
Activity_sequence | sample (const As_prior &prior) |
Sample an activity sequence from the given prior. More... | |
Association | sample (const Association_prior &prior) |
Draw a sample from an association prior. More... | |
void | read (Data &data, const std::string &fname) |
Read from file. More... | |
void | write (const Data &data, const std::string &fname) |
Write to file. More... | |
std::ostream & | operator<< (std::ostream &ost, const Description &desc) |
Push an description to an output stream. More... | |
template<class InIt > | |
void | write (const Description &desc, const std::string &path, const Activity_library &lib, InIt first, InIt last) |
Write description to files. More... | |
template<class InIt > | |
Description_info::Activity_info | find_group (Int_matrix &act_mat, size_t tr, size_t jc, InIt first, InIt last) |
Find group in activity matrix. Utility function for read(). More... | |
template<class InIt > | |
void | read (Description &desc, const std::string &path, const Activity_library &lib, InIt first, InIt last) |
Read description from files. More... | |
Description | make_trivial_description (const Data &data) |
Create a trivial description from data, where everybody is simply walking independently. More... | |
Description | sample (const Description_prior &prior) |
Sample a description from the prior. More... | |
std::vector< size_t > | trajectory_endpoints (Endpoint_set &endpoints, const Intentional_activity &act, const Description &desc, const std::vector< size_t > &ic=std::vector< size_t >()) |
Find the trajectory endpoints in a description. More... | |
boost::tuple< Vector, Vector, std::vector< size_t > > | endpoint_mean (const Endpoint_set &endpoints, const Description &desc, const Activity_library &lib) |
Find the trajectory endpoints in a description. More... | |
Matrix | endpoint_covariance (const Endpoint_set &endpoints, const Activity_library &library) |
Find the trajectory endpoints in a description. More... | |
void | endpoint_distribution (Vector &mux, Vector &muy, Matrix &Kss, const std::vector< size_t > tgts) |
Compute distribution for endpoints. More... | |
std::ostream & | operator<< (std::ostream &ost, const Intentional_activity &activity) |
Push an intentional activity to an output stream. More... | |
Data | sample (const Likelihood &likelihood, const Description &desc) |
Sample data from likelihood, given a description. More... | |
Intentional_activity::Param | sample (const Parameter_prior &prior) |
Draw a sample from a parameter prior. More... | |
std::ostream & | operator<< (std::ostream &ost, const Physical_activity &activity) |
Push an physical activity to an output stream. More... | |
std::ostream & | operator<< (std::ostream &ost, const Trajectory &traj) |
Push trajectory to output stream. More... | |
Trajectory | sample (const Trajectory_prior &prior) |
Draw a sample (a Trajectory) from a trajectory prior. More... | |
double | trajectory_min_x (const Trajectory &traj) |
Compute the min in the X-direction. More... | |
double | trajectory_max_x (const Trajectory &traj) |
Compute the max in the X-direction. More... | |
double | trajectory_min_z (const Trajectory &traj) |
Compute the min in the Z-direction. More... | |
double | trajectory_max_z (const Trajectory &traj) |
Compute the max in the Z-direction. More... | |
typedef std::vector<Endpoint> kjb::bbb::Endpoint_set |
Matrix kjb::bbb::endpoint_covariance | ( | const Endpoint_set & | endpoints, |
const Activity_library & | library | ||
) |
Find the trajectory endpoints in a description.
void kjb::bbb::endpoint_distribution | ( | Vector & | mux, |
Vector & | muy, | ||
Matrix & | Kss, | ||
const std::vector< size_t > | tgts | ||
) |
Compute distribution for endpoints.
boost::tuple< Vector, Vector, std::vector< size_t > > kjb::bbb::endpoint_mean | ( | const Endpoint_set & | endpoints, |
const Description & | desc, | ||
const Activity_library & | lib | ||
) |
Find the trajectory endpoints in a description.
Description_info::Activity_info kjb::bbb::find_group | ( | Int_matrix & | act_mat, |
size_t | tr, | ||
size_t | jc, | ||
InIt | first, | ||
InIt | last | ||
) |
Find group in activity matrix. Utility function for read().
Description kjb::bbb::make_trivial_description | ( | const Data & | data | ) |
Create a trivial description from data, where everybody is simply walking independently.
|
inline |
Push an physical activity to an output stream.
|
inline |
Push an intentional activity to an output stream.
std::ostream& kjb::bbb::operator<< | ( | std::ostream & | ost, |
const Activity_sequence & | aseq | ||
) |
Push an activity sequence to an output stream.
std::ostream & kjb::bbb::operator<< | ( | std::ostream & | ost, |
const Description & | desc | ||
) |
Push an description to an output stream.
std::ostream & kjb::bbb::operator<< | ( | std::ostream & | ost, |
const Trajectory & | traj | ||
) |
Push trajectory to output stream.
void kjb::bbb::read | ( | Data & | data, |
const std::string & | fname | ||
) |
Read from file.
void kjb::bbb::read | ( | Description & | desc, |
const std::string & | path, | ||
const Activity_library & | lib, | ||
InIt | first, | ||
InIt | last | ||
) |
Read description from files.
desc | Target description to be read. |
path | Path to input directory. |
lib | Activity library. |
first | First element in range of trajectory labels. |
last | One-past-the-end element in range of trajectory labels. |
bool kjb::bbb::same_activity | ( | const Activity_sequence::Activity & | activity, |
const A & | piact | ||
) |
Determines whether two activities are the same.
Association kjb::bbb::sample | ( | const Association_prior & | prior | ) |
Draw a sample from an association prior.
|
inline |
Draw a sample from a parameter prior.
Data kjb::bbb::sample | ( | const Likelihood & | likelihood, |
const Description & | desc | ||
) |
Sample data from likelihood, given a description.
Description kjb::bbb::sample | ( | const Description_prior & | prior | ) |
Sample a description from the prior.
Activity_sequence kjb::bbb::sample | ( | const As_prior & | prior | ) |
Sample an activity sequence from the given prior.
|
inline |
Draw a sample (a Trajectory) from a trajectory prior.
std::vector< size_t > kjb::bbb::trajectory_endpoints | ( | Endpoint_set & | endpoints, |
const Intentional_activity & | act, | ||
const Description & | desc, | ||
const std::vector< size_t > & | ic = std::vector<size_t>() |
||
) |
Find the trajectory endpoints in a description.
|
inline |
Compute the max in the X-direction.
|
inline |
Compute the max in the Z-direction.
|
inline |
Compute the min in the X-direction.
|
inline |
Compute the min in the Z-direction.
void kjb::bbb::write | ( | const Data & | data, |
const std::string & | fname | ||
) |
Write to file.
void kjb::bbb::write | ( | const Description & | desc, |
const std::string & | path, | ||
const Activity_library & | lib, | ||
InIt | first, | ||
InIt | last | ||
) |
Write description to files.
desc | Description to write. |
path | Path to output directory. |
lib | Activity library. |
first | First element in range of trajectory labels. |
last | One-past-the-end element in range of trajectory labels. |