Medial Code Documentation
|
Outliers filter. More...
#include <SampleFilter.h>
Public Member Functions | |
OutlierSampleFilter () | |
constructor | |
int | _learn (MedSamples &samples) |
Learning : check outlier-detection method and call appropriate learner (iterative/quantile) | |
int | iterativeLearn (MedSamples &samples) |
Learning : learn outliers using MedValueCleaner's iterative approximation of moments. | |
int | quantileLearn (MedSamples &samples) |
Learning : learn outliers using MedValueCleaner's quantile appeoximation of moments. | |
void | get_values (MedSamples &samples, vector< float > &values) |
Helper for learning - extract all outcomes from samples. | |
int | _filter (MedSamples &inSamples, MedSamples &outSamples) |
Filter without repository. | |
int | init (map< string, string > &mapper) |
init from map | |
void | init_defaults () |
init to defaults | |
![]() | |
virtual int | init (void *params) |
initialize from a params object : Should be implemented for inheriting classes that have parameters | |
virtual int | _learn (MedRepository &rep, MedSamples &samples) |
learn with repository : Should be implemented for inheriting classes that learn parameters using Repository information | |
virtual int | learn (MedRepository &rep, MedSamples &samples) |
learn with repository | |
virtual int | learn (MedSamples &samples) |
learn without repository | |
virtual int | _filter (MedRepository &rep, MedSamples &inSamples, MedSamples &outSamples) |
filter with repository : Should be implemented for inheriting classes that filter using Repository information | |
virtual int | filter (MedRepository &rep, MedSamples &inSamples, MedSamples &outSamples) |
filter with repository | |
int | filter (MedRepository &rep, MedSamples &samples) |
in-place filtering with repository | |
virtual int | filter (MedSamples &inSamples, MedSamples &outSamples) |
filter without repository : Should be implemented for all inheriting classes | |
int | filter (MedSamples &samples) |
in-place filtering without repository | |
virtual void | get_required_signals (vector< string > &req_sigs) |
Get all signals required for filtering : Should be implemented for inheriting classes that filter using Repository information. | |
virtual void * | new_polymorphic (string derived_class_name) |
for polymorphic classes that want to be able to serialize/deserialize a pointer * to the derived class given its type one needs to implement this function to return a new to the derived class given its type (as in my_type) | |
size_t | get_filter_size () |
get size of filter + filter_type | |
size_t | filter_serialize (unsigned char *blob) |
seialize filter + filter_type | |
![]() | |
virtual int | version () const |
Relevant for serializations. | |
virtual string | my_class_name () const |
For better handling of serializations it is highly recommended that each SerializableObject inheriting class will implement the next method. | |
virtual void | serialized_fields_name (vector< string > &field_names) const |
The names of the serialized fields. | |
virtual void | pre_serialization () |
virtual void | post_deserialization () |
virtual size_t | get_size () |
Gets bytes sizes for serializations. | |
virtual size_t | serialize (unsigned char *blob) |
Serialiazing object to blob memory. return number ob bytes wrote to memory. | |
virtual size_t | deserialize (unsigned char *blob) |
Deserialiazing blob to object. returns number of bytes read. | |
size_t | serialize_vec (vector< unsigned char > &blob) |
size_t | deserialize_vec (vector< unsigned char > &blob) |
virtual size_t | serialize (vector< unsigned char > &blob) |
virtual size_t | deserialize (vector< unsigned char > &blob) |
virtual int | read_from_file (const string &fname) |
read and deserialize model | |
virtual int | write_to_file (const string &fname) |
serialize model and write to file | |
virtual int | read_from_file_unsafe (const string &fname) |
read and deserialize model without checking version number - unsafe read | |
int | init_from_string (string init_string) |
Init from string. | |
int | init_params_from_file (string init_file) |
int | init_param_from_file (string file_str, string ¶m) |
int | update_from_string (const string &init_string) |
virtual int | update (map< string, string > &map) |
Virtual to update object from parsed fields. | |
virtual string | object_json () const |
![]() | |
int | get_quantile_min_max (vector< float > &values) |
Learning. | |
int | get_iterative_min_max (vector< float > &values) |
int | init (void *params) |
int | init (map< string, string > &mapper) |
The parsed fields from init command. | |
ValueCleanerType | get_cleaner_type (string name) |
Get Type. | |
MedValueCleaner () | |
default ctor: | |
Additional Inherited Members | |
![]() | |
static SampleFilter * | make_filter (string name) |
create a new sample filter from name | |
static SampleFilter * | make_filter (SampleFilterTypes type) |
create a new sample filter from type | |
static SampleFilter * | make_filter (string name, string params) |
create a new sample filter from name and a parameters string | |
static SampleFilter * | make_filter (SampleFilterTypes type, string params) |
create a new sample filter from type and a parameters string | |
![]() | |
SampleFilterTypes | filter_type |
The type of the filter. | |
![]() | |
ValueCleanerParams | params |
Learning parameters. | |
float | trimMax |
Thresholds for trimming. | |
float | trimMin |
float | removeMax |
Thresholds for removing. | |
float | removeMin |
float | nbrsMax |
Thresholds for neighbors. | |
float | nbrsMin |
int | num_samples_after_cleaning |
Outliers filter.
|
virtual |
Filter without repository.
Implements SampleFilter.
|
virtual |
Learning : check outlier-detection method and call appropriate learner (iterative/quantile)
Reimplemented from SampleFilter.
|
inlinevirtual |
init from map
Reimplemented from SampleFilter.
|
inlinevirtual |
init to defaults
Reimplemented from SampleFilter.