A features is a binding (see binding.h) over a feature space (see feature_space.h).
More...
Go to the source code of this file.
A features is a binding (see binding.h) over a feature space (see feature_space.h).
◆ ccs_create_features()
Create a new instance of a features on a given feature space.
If no values are provided the values will be initialized to CCS_DATA_TYPE_NONE.
- Parameters
-
| [in] | feature_space | |
| [in] | num_values | the number of provided values to initialize the features instance |
| [in] | values | an optional array of values to initialize the features |
| [out] | features_ret | a pointer to the variable that will hold the newly created features |
- Returns
- CCS_RESULT_SUCCESS on success
-
CCS_RESULT_ERROR_INVALID_OBJECT if
features is not a valid CCS feature space
-
CCS_RESULT_ERROR_INVALID_VALUE if
features_ret is NULL; or if values is NULL and num_values is greater than 0; or if the number of values provided is not equal to the number of parameters in the feature space
-
CCS_RESULT_ERROR_OUT_OF_MEMORY if there was a lack of memory to allocate the new features
◆ ccs_features_get_feature_space()