#include <pulse.h>
Inheritance diagram for Pulse:
Public Member Functions | |
Pulse (UINT n_in=0) | |
Pulse (std::istream &is) | |
virtual const id_t & | id () const |
virtual Pulse * | create () const |
Create a new object using the default constructor. | |
virtual Pulse * | clone () const |
Create a new object by replicating itself. | |
UINT | index () const |
void | set_index (UINT i) |
Set the dimension picked for classification. | |
const std::vector< REAL > & | threshold () const |
void | set_threshold (const std::vector< REAL > &) |
Set the transition points. | |
bool | direction () const |
void | set_direction (bool d) |
Set the pulse direction (true if starting with -1). | |
UINT | max_transitions () |
void | set_max_transitions (UINT ml) |
Set the maximal number of transitions the pulse can have. | |
virtual bool | support_weighted_data () const |
Whether the learning model/algorithm supports unequally weighted data. | |
virtual void | train () |
virtual Output | operator() (const Input &) const |
Protected Member Functions | |
virtual bool | serialize (std::ostream &, ver_list &) const |
virtual bool | unserialize (std::istream &, ver_list &, const id_t &=NIL_ID) |
Definition at line 19 of file pulse.h.
|
Definition at line 26 of file pulse.h. Referenced by Pulse::clone(), and Pulse::create(). |
|
|
|
Create a new object by replicating itself.
return new Derived(*this);
Implements LearnModel. Definition at line 31 of file pulse.h. References Pulse::Pulse(). |
|
Create a new object using the default constructor. The code for a derived class Derived is always return new Derived(); Implements LearnModel. Definition at line 30 of file pulse.h. References Pulse::Pulse(). |
|
|
|
Implements Object. |
|
|
|
|
|
Implements LearnModel. Definition at line 173 of file pulse.cpp. References LearnModel::n_input(). |
|
Reimplemented from LearnModel. Definition at line 32 of file pulse.cpp. References serialize(), and SERIALIZE_PARENT. |
|
Set the pulse direction (true if starting with -1).
|
|
Set the dimension picked for classification.
Definition at line 36 of file pulse.h. References LearnModel::n_input(). |
|
Set the maximal number of transitions the pulse can have.
|
|
Set the transition points.
|
|
Whether the learning model/algorithm supports unequally weighted data.
Reimplemented from LearnModel. |
|
|
|
Implements LearnModel. Definition at line 64 of file pulse.cpp. References LearnModel::_n_in, LearnModel::n_samples, LearnModel::ptd, LearnModel::ptw, and LearnModel::set_dimensions(). |
|
Reimplemented from LearnModel. Definition at line 39 of file pulse.cpp. References Object::NIL_ID, unserialize(), and UNSERIALIZE_PARENT. |