A feature space is a context (see context.h) defining a set of features represented using CCS parameters (see parameter.h).
More...
Go to the source code of this file.
A feature space is a context (see context.h) defining a set of features represented using CCS parameters (see parameter.h).
◆ ccs_create_feature_space()
Create a new feature space.
- Parameters
-
| [in] | name | pointer to a string that will be copied internally |
| [in] | num_parameters | the number of provided parameters |
| [in] | parameters | an array of num_parameters parameters to add to the feature space |
| [out] | feature_space_ret | a pointer to the variable that will hold the newly created feature space |
- Returns
- CCS_RESULT_SUCCESS on success
-
CCS_RESULT_ERROR_INVALID_VALUE if
name is NULL; or if feature_space_ret is NULL; or if parameters is NULL; or if num_parameters is NULL
-
CCS_RESULT_ERROR_INVALID_OBJECT if a parameter is not a valid CCS parameter
-
CCS_RESULT_ERROR_INVALID_PARAMETER if a parameter appears more than once in
parameters; or if two or more parameters share the same name; or if a parameter is already part of another context
-
CCS_RESULT_ERROR_OUT_OF_MEMORY if there was a lack of memory to allocate the new feature space
◆ ccs_feature_space_get_default_features()