- Weatherford Knowledge Base
- P#
- Statistical Functions
-
Getting Started
-
Customer Training
-
Customer Success
-
Updates
-
Production Optimization
-
Artificial Lift Optimization
-
Completion Optimization
-
Environmental, Social & Governance
-
Development, Acquisition & Divestitures
-
Enhanced Oil Recovery
-
Admin
-
P#
- Getting Started with P#
- Data Cleansing
- String Functions
- Scenario Functions
- Regression Functions
- Placeholder Functions
- Mathematical Functions
- Logic Functions
- Entities Function
- Moving Window Functions
- Time and Date Functions
- Statistical Functions
- Economic Functions
- Data Handling
- Additional Functions
- Directional Functions
- Machine Learning Functions
- DCA Functions
- Neighborhood Functions
-
Packages
Average
Arithmetic mean of all entities for the same time step.
Syntax
Prefix Average(expression)
- expression: signal expression
- Prefix:
- TIME for calculation of the average for all tine steps for one entity (default setting, can also be neglected)
- Time Average("x" in "unit") function returns the average i.e. of all the elements within the given time range.
- ENTITY calculation of the average for all entities at one time step (has to be placed in front of function if needed)
- Entity Average("x" in "unit") function returns the average i.e. of all the entities for a given time step.
- TIME for calculation of the average for all tine steps for one entity (default setting, can also be neglected)
Examples
Time Average("produced water per time increment" in "STB")
alternatively:
Average("produced water per time increment" in "STB")
As you see in the following table the Average function which produces following output based on the 'original signal' as input:
Entity Average("produced water per time increment" in "STB")
As seen in the following table the Entity Average function produces following output based on the 'original signal1' and 'original signal2' as input: