|
| Vector () |
|
| Vector (const size_t &) |
|
| Vector (const size_t &, const T &) |
|
| Vector (const string &) |
|
| Vector (const T &, const double &, const T &) |
|
template<class InputIterator > |
| Vector (const InputIterator &, const InputIterator &) |
| Input iterators constructor.
|
|
| Vector (const vector< T > &) |
|
| Vector (const Vector< T > &) |
|
| Vector (const initializer_list< T > &) |
|
| Vector (const Vector< Vector< T >> &) |
|
virtual | ~Vector () |
| Destroys the vector.
|
|
Vector< T > & | operator= (const Vector< T > &) |
|
bool | operator== (const T &) const |
|
bool | operator!= (const T &) const |
|
bool | operator> (const T &) const |
|
bool | operator< (const T &) const |
|
bool | operator>= (const T &) const |
|
bool | operator<= (const T &) const |
|
void | set () |
| Sets the size of this vector to zero.
|
|
void | set (const size_t &) |
|
void | set (const size_t &, const T &) |
|
void | set (const string &) |
|
void | set (const T &, const double &, const T &) |
|
void | set (const Vector< T > &) |
|
const T & | get_first () const |
| Return the first element of the vector.
|
|
const T & | get_last () const |
| Return the last element of the vector.
|
|
const T & | get_before_last () const |
| Return the penultimate element of the vector.
|
|
Vector< T > | get_positive_elements () const |
| Returns a vector that contains the elements of this vector that are equal to or greater than zero.
|
|
Vector< T > | get_negative_elements () const |
| Returns a vector that contains the elements of this vector that are less than zero.
|
|
void | initialize (const T &) |
|
void | initialize_first (const size_t &, const T &) |
|
void | initialize_sequential () |
| Initializes all the elements of the vector in a sequential order.
|
|
void | randomize_uniform (const T &, const T &) |
|
void | randomize_uniform (const Vector< T > &, const Vector< T > &) |
|
void | randomize_normal (const double &=0.0, const double &=1.0) |
|
void | randomize_normal (const Vector< double > &, const Vector< double > &) |
|
void | randomize_binary (const double &=0.5, const double &=0.5) |
|
void | trim () |
| Removes whitespaces from the start and the end of each element in this vector of strings.
|
|
Vector< T > | trimmed () const |
| Returns a vector of strings that has whitespaces removed from the start and the end of each element.
|
|
Vector< T > | fill_from (const size_t &, const Vector< T > &) const |
|
bool | contains (const T &) const |
|
bool | contains (const Vector< T > &) const |
|
bool | contains_greater_than (const T &) const |
|
bool | has_same_elements (const Vector< T > &) const |
|
bool | is_in (const T &, const T &) const |
|
bool | is_constant (const double &=0.0) const |
|
bool | is_constant_string () const |
| Returns true if all the elements in this vector of strings are equal, and false otherwise.
|
|
bool | is_crescent () const |
|
bool | is_decrescent () const |
|
bool | is_binary () const |
| Returns true if all the elements in the vector have binary values, and false otherwise.
|
|
bool | is_binary_missing_values () const |
| Returns true if all the elements in the vector have binary values, and false otherwise.
|
|
bool | is_binary_0_1 () const |
| Returns true if all elements are zero or one.
|
|
bool | is_integer () const |
| Returns true if all the elements in the vector are integers, and false otherwise.
|
|
bool | is_integer_missing_values () const |
| Returns true if all the elements in the vector are integers, and false otherwise.
|
|
bool | is_positive () const |
| Returns true if all the elements of this vector are equal or greater than zero, and false otherwise.
|
|
bool | is_negative () const |
| Returns true if all the elements of this vector are less than zero, and false otherwise.
|
|
bool | check_period (const double &period) const |
|
bool | has_nan () const |
| Returns true if any element of this vector contains at least one NAN, and false otherwise.
|
|
Vector< T > | get_reverse () const |
|
void | replace_value (const T &, const T &) |
|
size_t | count_equal_to (const T &) const |
|
size_t | count_equal_to (const Vector< T > &) const |
|
size_t | count_NAN () const |
| Returns the number of std NANs that are contained in the vector.
|
|
size_t | count_not_NAN () const |
| Returns the number of std not NANs that are contained in the vector.
|
|
size_t | count_not_equal_to (const T &) const |
|
size_t | count_not_equal_to (const Vector< T > &) const |
|
size_t | count_positive () const |
| Returns the number of elements that are equal or greater than zero.
|
|
size_t | count_negative () const |
| Returns the number of elements that are smaller than zero.
|
|
size_t | count_integers (const size_t &) const |
|
size_t | count_integers_missing_values (const size_t &) const |
|
size_t | count_greater_than (const T &) const |
|
size_t | count_less_than (const T &) const |
|
size_t | count_greater_equal_to (const T &) const |
|
size_t | count_less_equal_to (const T &) const |
|
size_t | count_between (const T &, const T &) const |
|
size_t | count_contains (const string &) const |
|
Vector< size_t > | count_unique () const |
|
size_t | get_first_index (const T &) const |
|
Vector< size_t > | get_indices_equal_to (const T &) const |
|
Vector< size_t > | get_indices_equal_to (const Vector< T > &) const |
|
Vector< size_t > | get_indices_not_equal_to (const T &) const |
|
Vector< size_t > | get_indices_not_equal_to (const Vector< T > &) const |
|
Vector< size_t > | get_indices_less_than (const T &) const |
|
Vector< size_t > | get_indices_greater_than (const T &) const |
|
Vector< size_t > | get_indices_less_equal_to (const T &) const |
|
Vector< size_t > | get_indices_greater_equal_to (const T &) const |
|
Vector< size_t > | get_between_indices (const T &, const T &) const |
|
Vector< size_t > | get_indices_that_contains (const string &) const |
|
Vector< T > | merge (const string &, const char &) const |
|
Vector< Matrix< T > > | to_vector_matrix (const size_t &, const size_t &, const size_t &) const |
|
Vector< T > | filter_equal_to (const T &) const |
|
Vector< T > | filter_not_equal_to (const T &) const |
|
Vector< T > | filter_equal_to (const Vector< T > &) const |
|
Vector< T > | filter_not_equal_to (const Vector< T > &) const |
|
Vector< T > | filter_positive () const |
| Sets all the negative elements in this vector to zero.
|
|
Vector< T > | filter_negative () const |
| Sets all the positive elements in this vector to zero.
|
|
Vector< T > | filter_minimum_maximum (const T &, const T &) const |
|
Vector< double > | perform_Box_Cox_transformation (const double &=1) const |
|
Vector< double > | calculate_percentage (const size_t &) const |
|
Vector< double > | calculate_percentage () const |
| Returns a vector containing the relative frequencies of the elements.
|
|
size_t | calculate_cumulative_index (const T &) const |
|
T | calculate_sum () const |
| Returns the sum of the elements of this vector.
|
|
T | calculate_partial_sum (const Vector< size_t > &) const |
|
T | calculate_sum_missing_values () const |
| Returns the sum of the elements of this vector, ignoring the given values.
|
|
T | calculate_product () const |
| Returns the product of the elements of this vector.
|
|
Vector< size_t > | sort_ascending_indices () const |
| Returns a vector of the indices of this vector sorted by ascending values.
|
|
Vector< T > | sort_ascending_values () const |
| Returns a vector of the elements of this vector sorted by ascending values.
|
|
Vector< size_t > | calculate_lower_indices (const size_t &) const |
|
Vector< T > | calculate_lower_values (const size_t &) const |
|
Vector< size_t > | sort_descending_indices () const |
| Returns a vector of the indices of this vector sorted by descending values.
|
|
Vector< T > | sort_descending_values () const |
| Returns a vector of the elements of this vector sorted by descending values.
|
|
Vector< size_t > | calculate_less_rank () const |
|
Vector< size_t > | calculate_greater_rank () const |
|
Vector< T > | sort_rank (const Vector< size_t > &) const |
|
Vector< T > | operator= (const initializer_list< T > &) const |
|
Vector< T > | operator+ (const T &) const |
|
Vector< T > | operator+ (const Vector< T > &) const |
|
Vector< T > | operator- (const T &) const |
|
Vector< T > | operator- (const Vector< T > &) const |
|
Vector< T > | operator* (const T &) const |
|
Vector< T > | operator* (const Vector< T > &) const |
|
Matrix< T > | operator* (const Matrix< T > &) const |
|
Vector< T > | operator/ (const T &) const |
|
Vector< T > | operator/ (const Vector< T > &) const |
|
void | operator+= (const T &) |
|
void | operator+= (const Vector< T > &) |
|
void | operator-= (const T &) |
|
void | operator-= (const Vector< T > &) |
|
void | operator*= (const T &) |
|
void | operator*= (const Vector< T > &) |
|
void | operator/= (const T &) |
|
void | operator/= (const Vector< T > &) |
|
Matrix< T > | to_diagonal_matrix () const |
|
Vector< T > | get_subvector (const size_t &, const size_t &) const |
|
Vector< T > | get_subvector (const Vector< size_t > &) const |
|
Vector< T > | get_subvector (const Vector< bool > &) const |
|
Vector< T > | get_subvector_random (const size_t &) const |
|
Vector< T > | get_first (const size_t &) const |
|
Vector< T > | get_last (const size_t &) const |
|
Vector< T > | delete_first (const size_t &) const |
|
Vector< T > | delete_last (const size_t &) const |
|
Vector< T > | get_integer_elements (const size_t &) const |
|
Vector< T > | get_integer_elements_missing_values (const size_t &) const |
| Returns a vector with the integers of this vector.
|
|
void | load (const string &) |
|
void | save (const string &, const char &=' ') const |
|
void | embed (const size_t &, const Vector< T > &) |
|
Vector< T > | insert_elements (const size_t &, const Vector< T > &) |
|
Vector< T > | insert_element (const size_t &, const T &) const |
|
Vector< T > | delete_index (const size_t &) const |
|
Vector< T > | delete_indices (const Vector< size_t > &) const |
|
Vector< T > | delete_value (const T &) const |
|
Vector< T > | delete_values (const Vector< T > &) const |
|
Vector< T > | assemble (const Vector< T > &) const |
|
Vector< T > | get_difference (const Vector< T > &) const |
|
Vector< T > | get_union (const Vector< T > &) const |
|
Vector< T > | get_intersection (const Vector< T > &) const |
|
Vector< T > | get_unique_elements () const |
|
void | print_unique_string () const |
|
void | print_unique_number () const |
|
Vector< T > | calculate_top_string (const size_t &) const |
|
Vector< T > | calculate_top_number (const size_t &) const |
|
void | print_top_string (const size_t &) const |
|
vector< T > | to_std_vector () const |
| Returns a std vector with the size and elements of this OpenNN vector.
|
|
Vector< float > | to_float_vector () const |
| Returns a new vector with the elements of this vector casted to float.
|
|
Vector< double > | to_double_vector () const |
| Returns a new vector with the elements of this vector casted to double.
|
|
Vector< int > | to_int_vector () const |
| Returns a new vector with the elements of this vector casted to int.
|
|
Vector< size_t > | to_size_t_vector () const |
| Returns a new vector with the elements of this vector casted to size_t.
|
|
Vector< time_t > | to_time_t_vector () const |
| Returns a new vector with the elements of this vector casted to time_t.
|
|
Vector< bool > | to_bool_vector () const |
|
Matrix< T > | to_binary_matrix () const |
|
Vector< string > | to_string_vector () const |
| Returns a new vector with the elements of this vector converted to string.
|
|
Vector< double > | string_to_double () const |
| Returns a new vector with the elements of this string vector casted to double.
|
|
Vector< int > | string_to_int () const |
| Returns a new vector with the elements of this string vector casted to int.
|
|
Vector< size_t > | string_to_size_t () const |
| Returns a new vector with the elements of this string vector casted to size_t.
|
|
Vector< time_t > | string_to_time_t () const |
| Returns a new vector with the elements of this string vector casted to time_t.
|
|
Vector< Vector< T > > | split (const size_t &) const |
|
Matrix< T > | to_row_matrix () const |
|
Matrix< T > | to_column_matrix () const |
|
void | parse (const string &) |
|
string | to_text (const char &=',') const |
| Returns a string representation of this vector which can be inserted in a text.
|
|
string | to_text (const string &=",") const |
| Returns a string representation of this vector which can be inserted in a text.
|
|
string | vector_to_string (const char &, const char &) const |
|
string | vector_to_string (const char &) const |
|
string | vector_to_string () const |
| Returns a string representation of this vector.
|
|
string | stack_vector_to_string () const |
| Returns a new vector with the elements of this stack vector casted to string.
|
|
Vector< string > | write_string_vector (const size_t &=5) const |
|
Matrix< T > | to_matrix (const size_t &, const size_t &) const |
|
Tensor< T > | to_tensor (const Vector< size_t > &) const |
|
template<typename T>
class OpenNN::Vector< T >
This template represents an array of any kind of numbers or objects.
It inherits from the vector of the standard library, and implements additional utilities.
Definition at line 54 of file vector.h.