SVM Dataset - Definition.
More...
#include "svmdataset.h"
#include <string.h>
#include <math.h>
#include "svmdataset.c"
#include "float.th"
- Author
- Daniele Perrone
-
Andrea Vedaldi
◆ vl_svmdataset_delete()
- Parameters
-
The function frees the resources allocated by vl_svmdataset_new(). Notice that the wrapped data will not be freed as it is not owned by the object.
◆ vl_svmdataset_get_accumulate_function()
- Parameters
-
- Returns
- a pointer to the accumulate function to use with this data.
◆ vl_svmdataset_get_data()
- Parameters
-
- Returns
- a pointer to the wrapped data.
◆ vl_svmdataset_get_dimension()
- Parameters
-
- Returns
- dimension of the wrapped data.
◆ vl_svmdataset_get_homogeneous_kernel_map()
- Parameters
-
- Returns
- homogenoeus kernel map object (or
NULL
if any).
◆ vl_svmdataset_get_inner_product_function()
- Parameters
-
- Returns
- a pointer to the inner product function to use with this data.
◆ vl_svmdataset_get_num_data()
- Parameters
-
- Returns
- number of wrapped data elements.
◆ vl_svmdataset_new()
- Parameters
-
dataType | of data (float and double supported). |
data | pointer to the data. |
dimension | the dimension of a data vector. |
numData | number of wrapped data vectors. |
- Returns
- new object.
The function allocates and returns a new SVM dataset object wrapping the data pointed by data. Note that no copy is made of data, so the caller should keep the data allocated as the object exists.
- See also
- vl_svmdataset_delete
◆ vl_svmdataset_set_homogeneous_kernel_map()
- Parameters
-
self | object. |
hom | homogeneous kernel map object to use. |
After changing the kernel map, the inner product and accumulator function should be queried again (vl_svmdataset_get_inner_product_function adn vl_svmdataset_get_accumulate_function).
Set this to NULL
to avoid using a kernel map.
Note that this does not transfer the ownership of the object to the function. Furthermore, VlSvmDataset holds to the object until it is destroyed or the object is replaced or removed by calling this function again.