|
C Configuration Space and Tuning Library (CCS)
|
A distribution space is set of sampling distribution over the parameters of a configuration space. More...

Go to the source code of this file.
Functions | |
| ccs_result_t | ccs_create_distribution_space (ccs_configuration_space_t configuration_space, ccs_distribution_space_t *distribution_space_ret) |
| Create an new distribution space. | |
| ccs_result_t | ccs_distribution_space_get_configuration_space (ccs_distribution_space_t distribution_space, ccs_configuration_space_t *configuration_space_ret) |
| Get the associated configuration space. | |
| ccs_result_t | ccs_distribution_space_set_distribution (ccs_distribution_space_t distribution_space, ccs_distribution_t distribution, size_t *indices) |
| Set the distribution of one or more parameters. | |
| ccs_result_t | ccs_distribution_space_get_parameter_distribution (ccs_distribution_space_t distribution_space, size_t index, ccs_distribution_t *distribution_ret, size_t *index_ret) |
| Get a parameter's distribution in a distribution space given its index. | |
A distribution space is set of sampling distribution over the parameters of a configuration space.
|
extern |
Create an new distribution space.
| [in] | configuration_space | the configuration space the distribution space will be used to sample |
| [out] | distribution_space_ret | a pointer to the variable that will contain the newly created distribution space |
configuration_space is not a valid CCS configuration space; or if objective_space is not a valid CCS objective space distribution_space_ret is NULL
|
extern |
Get the associated configuration space.
| [in] | distribution_space | |
| [out] | configuration_space_ret | a pointer to the variable that will contain the configuration space |
distribution_space is not a valid CCS distribution space distribution_space_ret is NULL
|
extern |
Get a parameter's distribution in a distribution space given its index.
| [in] | distribution_space | |
| [in] | index | the index of the parameter |
| [out] | distribution_ret | a pointer to the variable that will contain the distribution |
| [out] | index_ret | a pointer to the variable that will contain the index of the component in the distribution |
distribution_space is not a valid CCS distribution space distribution_ret is NULL; or if index_ret is NULL index is greater than the count of parameters in the distribution space's configuration space
|
extern |
Set the distribution of one or more parameters.
Existing distributions are discarded, and if a parameter is left without a distribution it's default distribution is used.
| [in,out] | distribution_space | |
| [in] | distribution | the distribution to associate to the parameters at the indices given by indices |
| [in] | indices | an array of parameters indices with as many elements as the dimension of the distribution |
distribution_space is not a valid CCS distribution space; or distribution is not a valid CCS distribution indices is NULL; or if indices contains values greater or equal to the number of parameters in the distribution space's configuration space; or if indices contain duplicate values