A dataset used to select some frames of another dataset.
Inheritance:
Public Fields
-
DataSet* data
- DataSet where we will select frames
-
int* n_selected_input_frames
- Number of input selected frames, for each example
-
int* n_selected_target_frames
- Number of target selected frames, for each example
-
int** input_frames_indices
- Indices of input selected frames, for each example
-
int** target_frames_indices
- Indices of target selected frames, for each example
Public Methods
-
FrameSelectorDataSet(DataSet* data_)
-
void selectInputFrames(int t_, int* frames_indices_, int n_frames_)
- Select input frames of the example t.
-
void selectTargetFrames(int t_, int* frames_indices_, int n_frames_)
- Same as selectInputFrames(), but for targets
-
void unselectInputFrames(int t_)
- Unselect inputs frames of the example t.
-
void unselectTargetFrames(int t_)
- Unselect targets frames of the example t.
Inherited from DataSet:
Public Fields
-
int* selected_examples
-
int n_inputs
-
int n_targets
-
int real_current_example_index
-
Sequence* inputs
-
Sequence* targets
-
int n_examples
-
int n_real_examples
Public Methods
-
void init(int n_examples_, int n_inputs_, int n_targets_)
-
void setExample(int t, bool set_inputs=true, bool set_targets=true)
-
virtual void setRealExample(int t, bool set_inputs=true, bool set_targets=true)
-
virtual void pushSubset(int* subset_, int n_examples_)
-
virtual void popSubset()
-
virtual void pushExample()
-
virtual void popExample()
-
virtual void getNumberOfFrames(int t, int* n_input_frames, int* n_target_frames)
-
virtual void preProcess(PreProcessing* pre_processing)
Inherited from Object:
Public Fields
-
Allocator* allocator
Public Methods
-
void addOption(const char* name, int size, void* ptr, const char* help="")
-
void addIOption(const char* name, int* ptr, int init_value, const char* help="")
-
void addROption(const char* name, real* ptr, real init_value, const char* help="")
-
void addBOption(const char* name, bool* ptr, bool init_value, const char* help="")
-
void addOOption(const char* name, Object** ptr, Object* init_value, const char* help="")
-
void setOption(const char* name, void* ptr)
-
void setIOption(const char* name, int option)
-
void setROption(const char* name, real option)
-
void setBOption(const char* name, bool option)
-
void setOOption(const char* name, Object* option)
-
virtual void loadXFile(XFile* file)
-
virtual void saveXFile(XFile* file)
-
void load(const char* filename)
-
void save(const char* filename)
-
void* operator new(size_t size, Allocator* allocator_=NULL)
-
void* operator new(size_t size, Allocator* allocator_, void* ptr_)
-
void operator delete(void* ptr)
Documentation
A dataset used to select some frames of another dataset.
It takes a dataset in the constructor. Then you call
select functions to select frames. After that, when
you will do a setExample() the example of the previous
dataset will be returned in inputs and targets fields,
with the right frames...
- DataSet* data
- DataSet where we will select frames
- int* n_selected_input_frames
- Number of input selected frames, for each example
- int* n_selected_target_frames
- Number of target selected frames, for each example
- int** input_frames_indices
- Indices of input selected frames, for each example
- int** target_frames_indices
- Indices of target selected frames, for each example
- FrameSelectorDataSet(DataSet* data_)
- void selectInputFrames(int t_, int* frames_indices_, int n_frames_)
- Select input frames of the example t.
Frames indices are given by frames_indices_.
The size of frames_indices_ is given by n_frames_.
Takes in account pushed subsets.
- void selectTargetFrames(int t_, int* frames_indices_, int n_frames_)
- Same as selectInputFrames(), but for targets
- void unselectInputFrames(int t_)
- Unselect inputs frames of the example t.
Takes in account pushed subsets.
- void unselectTargetFrames(int t_)
- Unselect targets frames of the example t.
Takes in account pushed subsets.
- This class has no child classes.
- Author:
- Ronan Collobert (collober@idiap.ch)
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.