24 #ifndef __evScalarField_h 25 #define __evScalarField_h 44 double Max(
void)
const;
45 double Min(
void)
const;
72 return(*std::max_element(this->
Field.begin(), this->
Field.end()));
78 return(*std::min_element(this->
Field.begin(), this->
Field.end()));
84 double max_value = this->
Max();
85 double min_value = this->
Min();
87 if (max_value == min_value)
92 (this->
Field[i] - min_value) / (max_value - min_value);
virtual ~evScalarField(void)
Definition: evScalarField.h:36
void PutField(const double &value)
virtual const evString GetClassName(void) const
Definition: evScalarField.h:39
virtual int SetSize(const evAddress &size, const bool allocate=true)
Definition: evAddress.h:37
double Max(void) const
Definition: evScalarField.h:70
evScalarField(void)
Definition: evScalarField.h:56
std::vector< double > Field
Definition: evField.h:125
double Min(void) const
Definition: evScalarField.h:76
int Normalize(void)
Definition: evScalarField.h:82
virtual void Initialize(void)
Definition: evScalarField.h:31
Definition: evString.h:30
unsigned int GetTotalSize(void) const