KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
bbb_endpoints.h
Go to the documentation of this file.
1 /* =========================================================================== *
2  |
3  | Copyright (c) 1994-2011 by Kobus Barnard (author)
4  |
5  | Personal and educational use of this code is granted, provided that this
6  | header is kept intact, and that the authorship is not misrepresented, that
7  | its use is acknowledged in publications, and relevant papers are cited.
8  |
9  | For other use contact the author (kobus AT cs DOT arizona DOT edu).
10  |
11  | Please note that the code in this file has not necessarily been adequately
12  | tested. Naturally, there is no guarantee of performance, support, or fitness
13  | for any particular task. Nonetheless, I am interested in hearing about
14  | problems that you encounter.
15  |
16  | Author: Ernesto Brau
17  * =========================================================================== */
18 
19 /* $Id$ */
20 
21 #ifndef B3_ENDPOINTS_H
22 #define B3_ENDPOINTS_H
23 
28 #include <m_cpp/m_vector.h>
29 #include <m_cpp/m_matrix.h>
30 #include <vector>
31 #include <boost/tuple/tuple.hpp>
32 
33 namespace kjb {
34 namespace bbb {
35 
37 struct Endpoint
38 {
41  std::vector<size_t> incoming;
42 };
43 
44 typedef std::vector<Endpoint> Endpoint_set;
45 
47 std::vector<size_t> trajectory_endpoints
48 (
49  Endpoint_set& endpoints,
50  const Intentional_activity& act,
51  const Description& desc,
52  const std::vector<size_t>& ic = std::vector<size_t>()
53 );
54 
56 boost::tuple<Vector, Vector, std::vector<size_t> > endpoint_mean
57 (
58  const Endpoint_set& endpoints,
59  const Description& desc,
60  const Activity_library& lib
61 );
62 
65 (
66  const Endpoint_set& endpoints,
67  const Activity_library& library
68 );
69 
72 (
73  Vector& mux,
74  Vector& muy,
75  Matrix& Kss,
76  const std::vector<size_t> tgts
77 );
78 
79 }} // namespace kjb::bbb
80 
81 #endif /*B3_ENDPOINTS_H */
82 
Definition: bbb_intentional_activity.h:39
Definition for the Matrix class, a thin wrapper on the KJB Matrix struct and its related functionalit...
const Physical_activity * right_p
Definition: bbb_endpoints.h:40
const Physical_activity * left_p
Definition: bbb_endpoints.h:39
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.
Definition: bbb_endpoints.cpp:126
This class implements vectors, in the linear-algebra sense, with real-valued elements.
Definition: m_vector.h:87
Definition: bbb_description.h:62
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.
Definition: bbb_endpoints.cpp:43
Matrix endpoint_covariance(const Endpoint_set &endpoints, const Activity_library &library)
Find the trajectory endpoints in a description.
Definition: bbb_endpoints.cpp:169
std::vector< size_t > incoming
Definition: bbb_endpoints.h:41
void endpoint_distribution(Vector &mux, Vector &muy, Matrix &Kss, const std::vector< size_t > tgts)
Compute distribution for endpoints.
Definition: bbb_endpoints.cpp:239
Definition: bbb_physical_activity.h:39
This class implements matrices, in the linear-algebra sense, with real-valued elements.
Definition: m_matrix.h:94
Class that holds information for endpoints.
Definition: bbb_endpoints.h:37
Definition: bbb_activity_library.h:38
Definition for the Vector class, a thin wrapper on the KJB Vector struct and its related functionalit...
std::vector< Endpoint > Endpoint_set
Definition: bbb_endpoints.h:44