public class StatisticalExpression extends java.lang.Object implements AttributeExpressionInterface
| Modifier and Type | Class and Description |
|---|---|
static class |
StatisticalExpression.Builder |
static class |
StatisticalExpression.StatisticalOperator |
| Constructor and Description |
|---|
StatisticalExpression() |
| Modifier and Type | Method and Description |
|---|---|
Value |
entropy(java.lang.String attributeName,
RelativeTimePeriod period,
WorkingMemory wm)
Returns entropy of the attribute values from specified period of time.
|
Value |
evaluate(WorkingMemory wm) |
Type |
evaluateType(WorkingMemory wm)
It always returns null, as it cannot be always determined what type is the returned value of.
|
Attribute |
getAttribute() |
java.lang.String |
getAttributeName() |
Value |
max(java.lang.String attributeName,
RelativeTimePeriod period,
WorkingMemory wm)
Returns the biggest value of an attribute from specified period of time.
|
Value |
mean(java.lang.String attributeName,
RelativeTimePeriod period,
WorkingMemory wm)
Returns mean of the attribute values from specified period of time.
|
Value |
med(java.lang.String attributeName,
RelativeTimePeriod period,
WorkingMemory wm)
Returns median of the attribute values from specified period of time.
|
Value |
min(java.lang.String attributeName,
RelativeTimePeriod period,
WorkingMemory wm)
Returns the smallest value of an attribute from specified period of time
It is applicable only to the numeric attributes.
|
Value |
mode(java.lang.String attributeName,
RelativeTimePeriod period,
WorkingMemory wm)
Returns the most frequent attribute value from specified period of time
|
Value |
stdev(java.lang.String attributeName,
RelativeTimePeriod period,
WorkingMemory wm)
Returns standard deviation of the attribute values from specified period of time.
|
Value |
trend(java.lang.String attributeName,
RelativeTimePeriod period,
WorkingMemory wm)
Returns slope of the trend line fitted to attribute values using the least--squares fit.
|
Value |
var(java.lang.String attributeName,
RelativeTimePeriod period,
WorkingMemory wm)
Returns variance of the attribute values from specified period of time.
|
protected Attribute attribute
public java.lang.String getAttributeName()
getAttributeName in interface AttributeExpressionInterfacepublic Attribute getAttribute()
getAttribute in interface AttributeExpressionInterfacepublic Value max(java.lang.String attributeName, RelativeTimePeriod period, WorkingMemory wm) throws NotInTheDomainException
attributeName - the attribute name for which the operation has to be performedperiod - relative time period from which the values for calculation should be taken.wm - WorkingMemory object where the historical information about the attribute values are storedNotInTheDomainExceptionpublic Value min(java.lang.String attributeName, RelativeTimePeriod period, WorkingMemory wm) throws NotInTheDomainException
attributeName - the attribute name for which the operation has to be performedperiod - relative time period from which the values for calculation should be taken.wm - WorkingMemory object where the historical information about the attribute values are storedNotInTheDomainExceptionpublic Value med(java.lang.String attributeName, RelativeTimePeriod period, WorkingMemory wm) throws NotInTheDomainException
attributeName - the attribute name for which the operation has to be performedperiod - relative time period from which the values for calculation should be taken.wm - WorkingMemory object where the historical information about the attribute values are storedNotInTheDomainExceptionpublic Value stdev(java.lang.String attributeName, RelativeTimePeriod period, WorkingMemory wm) throws NotInTheDomainException
attributeName - the attribute name for which the operation has to be performedperiod - relative time period from which the values for calculation should be taken.wm - WorkingMemory object where the historical information about the attribute values are storedNotInTheDomainExceptionpublic Value trend(java.lang.String attributeName, RelativeTimePeriod period, WorkingMemory wm)
attributeName - the attribute name for which the operation has to be performedperiod - relative time period from which the values for calculation should be taken.wm - WorkingMemory object where the historical information about the attribute values are storedNotInTheDomainExceptionpublic Value var(java.lang.String attributeName, RelativeTimePeriod period, WorkingMemory wm) throws NotInTheDomainException
attributeName - the attribute name for which the operation has to be performedperiod - relative time period from which the values for calculation should be taken.wm - WorkingMemory object where the historical information about the attribute values are storedNotInTheDomainExceptionpublic Value entropy(java.lang.String attributeName, RelativeTimePeriod period, WorkingMemory wm) throws NotInTheDomainException
attributeName - the attribute name for which the operation has to be performedperiod - relative time period from which the values for calculation should be taken.wm - WorkingMemory object where the historical information about the attribute values are storedNotInTheDomainExceptionpublic Value mode(java.lang.String attributeName, RelativeTimePeriod period, WorkingMemory wm)
attributeName - the attribute name for which the operation has to be performedperiod - relative time period from which the values for calculation should be taken.wm - WorkingMemory object where the historical information about the attribute values are storedNotInTheDomainExceptionpublic Value mean(java.lang.String attributeName, RelativeTimePeriod period, WorkingMemory wm) throws NotInTheDomainException
attributeName - the attribute name for which the operation has to be performedperiod - relative time period from which the values for calculation should be taken.wm - WorkingMemory object where the historical information about the attribute values are storedNotInTheDomainExceptionpublic Value evaluate(WorkingMemory wm) throws java.lang.UnsupportedOperationException, NotInTheDomainException
evaluate in interface ExpressionInterfacejava.lang.UnsupportedOperationExceptionNotInTheDomainExceptionpublic Type evaluateType(WorkingMemory wm)
evaluateType in interface ExpressionInterfacewm - The WorkingMemory object with respect to which a type of an expression should be evaluated