public class Summary
extends java.lang.Object
Computes summary functions. There are four summary functions, maximum, minimum, average and sum.
At the beginning you have to call loadDefaultSummarizes with the first analyzed feature. Next, the function updateValues will update the statistics values and in the end you have to load the statistics value in the output feature calling the function loadEditableFeature.
Constructor and Description |
---|
Summary(IDissolveRule criteria,
FeatureType featType) |
Modifier and Type | Method and Description |
---|---|
double |
getAvg() |
double |
getMax() |
double |
getMin() |
double |
getSum() |
void |
loadDefaultSummarizes(Feature feature)
Loads the default statistics values.
|
void |
loadEditableFeature(EditableFeature feat)
Loads an EditableFeature with the statistics
|
void |
setAvg(double avg) |
void |
setMax(double max) |
void |
setMin(double min) |
void |
setSum(double sum) |
void |
updateValues(Feature feature)
This function updates statistics values reading the field
values of the selected feature .
|
public Summary(IDissolveRule criteria, FeatureType featType)
public void updateValues(Feature feature)
feature
- public void loadEditableFeature(EditableFeature feat)
feat
- public void loadDefaultSummarizes(Feature feature)
feature
- public double getMax()
public void setMax(double max)
public double getMin()
public void setMin(double min)
public double getAvg()
public void setAvg(double avg)
public double getSum()
public void setSum(double sum)