#include <ConfigurationSpace.h>
Public Member Functions | |
void | bounds (unsigned int i_rank, double min, double max) |
set bounds for i_rank th element More... | |
ConfigurationSpace (unsigned int i_size) | |
constructor More... | |
bool | isValid (const Configuration &cfg) const |
全ての要素が有効な範囲内にあるかどうか検査する More... | |
double & | lbound (unsigned int i_rank) |
get lower bound of i_rank th element More... | |
Configuration | random () |
generate random position More... | |
unsigned int | size () |
get the number of degrees of freedom More... | |
double & | ubound (unsigned int i_rank) |
get upper bound for i_rank th element More... | |
void | unboundedRotation (unsigned int i_rank, bool i_flag) |
specify i th degree of freedom is unbounded rotaion or not. default is false More... | |
bool | unboundedRotation (unsigned int i_rank) |
ask i the degree of freedom is unbounded rotaion or not More... | |
double & | weight (unsigned int i_rank) |
get weight for i_rank th element More... | |
const double | weight (unsigned int i_rank) const |
Private Attributes | |
std::vector< bool > | m_isUnboundedRotation |
std::vector< double > | m_lbounds |
unsigned int | m_size |
std::vector< double > | m_ubounds |
std::vector< double > | m_weights |
Definition at line 12 of file ConfigurationSpace.h.
ConfigurationSpace::ConfigurationSpace | ( | unsigned int | i_size | ) |
constructor
Definition at line 10 of file ConfigurationSpace.cpp.
set bounds for i_rank th element
i_rank | rank of the element |
min | minimum value |
max | maximum value |
Definition at line 48 of file ConfigurationSpace.cpp.
bool ConfigurationSpace::isValid | ( | const Configuration & | cfg | ) | const |
全ての要素が有効な範囲内にあるかどうか検査する
Definition at line 24 of file ConfigurationSpace.cpp.
double & ConfigurationSpace::lbound | ( | unsigned int | i_rank | ) |
get lower bound of i_rank th element
i_rank | rank of the element |
Definition at line 54 of file ConfigurationSpace.cpp.
Configuration ConfigurationSpace::random | ( | ) |
generate random position
Definition at line 64 of file ConfigurationSpace.cpp.
get the number of degrees of freedom
Definition at line 78 of file ConfigurationSpace.cpp.
double & ConfigurationSpace::ubound | ( | unsigned int | i_rank | ) |
get upper bound for i_rank th element
i_rank | rank of the element |
Definition at line 59 of file ConfigurationSpace.cpp.
specify i th degree of freedom is unbounded rotaion or not. default is false
i_rank | rank of the degree of freedom |
i_flag | true or false |
Definition at line 83 of file ConfigurationSpace.cpp.
bool ConfigurationSpace::unboundedRotation | ( | unsigned int | i_rank | ) |
ask i the degree of freedom is unbounded rotaion or not
i_rank | rank of the degree of freedom |
Definition at line 88 of file ConfigurationSpace.cpp.
double & ConfigurationSpace::weight | ( | unsigned int | i_rank | ) |
get weight for i_rank th element
i_rank | rank of the element |
Definition at line 38 of file ConfigurationSpace.cpp.
Definition at line 43 of file ConfigurationSpace.cpp.
|
private |
Definition at line 87 of file ConfigurationSpace.h.
|
private |
Definition at line 85 of file ConfigurationSpace.h.
|
private |
Definition at line 83 of file ConfigurationSpace.h.
|
private |
Definition at line 84 of file ConfigurationSpace.h.
|
private |
Definition at line 86 of file ConfigurationSpace.h.