Converts elements without equal neighbours to another state. More...

#include <ConvertIsolated.h>

Inheritance diagram for Pulsar::ConvertIsolated:
Pulsar::PhaseWeightSmooth Pulsar::PhaseWeightModifier Pulsar::PhaseWeightFunction Pulsar::Algorithm Reference::Able Reference::HeapTracked

Public Member Functions

 ConvertIsolated ()
 Default constructor.
ConvertIsolatedclone () const
 Return new copy of self.
void set_neighbourhood (float)
 Set the size of the neighbourhood checked to the right or left.
float get_neighbourhood () const
 Get the size of the neighbourhood checked to the right or left.
void set_like_fraction (float)
 Set the fraction of equal neighbours required to the right or left.
float get_like_fraction () const
 Get the fraction of equal neighbours required to the right or left.
void set_test (float test)
 Set the value to test for isolation.
float get_test () const
 Get the value to test for isolation.
void set_convert (float convert)
 Set the value to which isolated elements are converted.
float get_convert () const
 Get the value to which isolated elements are converted.
Public Member Functions inherited from Pulsar::PhaseWeightModifier
virtual void set_weight (const PhaseWeight *)
 Set the PhaseWeight from which the PhaseWeight will be derived.
virtual void get_weight (PhaseWeight *weight)
 Returns a PhaseWeight.
void operator() (PhaseWeight *)
 Inplace operator.
TextInterface::Parserget_interface ()
 Return a text interface that can be used to configure this instance.
Public Member Functions inherited from Reference::Able
 Able (const Able &)
Ableoperator= (const Able &)
unsigned get_reference_count () const
Public Member Functions inherited from Reference::HeapTracked
 HeapTracked (const HeapTracked &)
HeapTrackedoperator= (const HeapTracked &)
bool __is_on_heap () const

Protected Member Functions

void calculate (PhaseWeight *)
 Derived classes implement the PhaseWeight calculation.
Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
void __dereference (bool auto_delete=true) const

Protected Attributes

float neighbourhood
float like_fraction
float test_value
float convert_value
Protected Attributes inherited from Pulsar::PhaseWeightModifier
Reference::To< const PhaseWeightinput_weight
 The PhaseWeight from which the PhaseWeight will be derived.

Additional Inherited Members

Static Public Member Functions inherited from Reference::Able
static size_t get_instance_count ()
Static Public Member Functions inherited from Reference::HeapTracked
static void * operator new (size_t size, void *ptr=0)
static void operator delete (void *location, void *ptr)
static void operator delete (void *location)
static size_t get_heap_queue_size ()

Detailed Description

Converts elements without equal neighbours to another state.

Member Function Documentation

◆ calculate()

void Pulsar::ConvertIsolated::calculate ( PhaseWeight * )
protectedvirtual

Derived classes implement the PhaseWeight calculation.

Implements Pulsar::PhaseWeightModifier.

References Pulsar::PhaseWeightModifier::input_weight.

◆ clone()

Pulsar::ConvertIsolated * Pulsar::ConvertIsolated::clone ( ) const
virtual

Return new copy of self.

Implements Pulsar::PhaseWeightFunction.

References ConvertIsolated().

◆ get_neighbourhood()

float Pulsar::ConvertIsolated::get_neighbourhood ( ) const

Get the size of the neighbourhood checked to the right or left.

Get the smoothing neighbourhood fraction.

◆ set_neighbourhood()

void Pulsar::ConvertIsolated::set_neighbourhood ( float fraction)

Set the size of the neighbourhood checked to the right or left.

Set the smoothing neighbourhood fraction.


The documentation for this class was generated from the following files:

Generated using doxygen 1.14.0