#include <processor.h>
Inheritance diagram for EMAN::BoxSigmaProcessor:
Public Member Functions | |
string | get_name () const |
Get the processor's name. | |
string | get_desc () const |
Get the descrition of this specific processor. | |
Static Public Member Functions | |
static Processor * | NEW () |
Static Public Attributes | |
static const string | NAME = "math.localsigma" |
Protected Member Functions | |
void | process_pixel (float *pixel, const float *data, int n) const |
Definition at line 3058 of file processor.h.
|
Get the descrition of this specific processor. This function must be overwritten by a subclass.
Implements EMAN::Processor. Definition at line 3070 of file processor.h.
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 3061 of file processor.h. References NAME. 03062 { 03063 return NAME; 03064 }
|
|
Definition at line 3065 of file processor.h. 03066 { 03067 return new BoxSigmaProcessor(); 03068 }
|
|
Implements EMAN::BoxStatProcessor. Definition at line 3078 of file processor.h. References sqrt(). 03079 { 03080 float sum = 0; 03081 float square_sum = 0; 03082 for (int i = 0; i < n; i++) 03083 { 03084 sum += data[i]; 03085 square_sum += data[i] * data[i]; 03086 } 03087 03088 float mean = sum / n; 03089 *pixel = sqrt(square_sum / n - mean * mean); 03090 }
|
|
Definition at line 3075 of file processor.h. Referenced by get_name(). |