Object avgOfLast(PropertyAtom pa, int last_n_times)Object avgOfLast(PropertyAtom pa, int last_n_times)| Name | Type | Description |
|---|---|---|
pa | PropertyAtom | The target property for calculation. |
last_n_times | int | The number of last history entries to calculate. |
| Type | Description |
|---|---|
Object | The average of the value of the last n history entries. The return object type is always Double if any. |