public class Stat extends Object
Modifier and Type | Field and Description |
---|---|
HashMap<String,String> |
dims
The position of the element in the hypercube.
|
double |
value
The value
|
Constructor and Description |
---|
Stat() |
Stat(double value,
String... dims) |
Stat(Stat s)
Clone a stat object
|
Modifier and Type | Method and Description |
---|---|
void |
addAllFlags(String flags)
Add flags to the statistical value.
|
boolean |
addFlag(Flag.FlagType flag)
Add a flag to the statistical value.
|
String[] |
getDimValues(String[] dimLabels)
Return an array of dimension values.
|
String |
getFlags() |
String |
getValueFlagged() |
boolean |
isFlagged(Flag.FlagType flag)
Check if the stat value is flagged.
|
boolean |
removeFlag(Flag.FlagType flag)
Remove a flag.
|
String |
toString() |
public Stat()
public Stat(double value, String... dims)
value
- The statistical valuedims
- The position of the statistical value in the hypercube: list of pairs: dimLabel1,dimValue1,dimLabel2,dimValue2,...public Stat(Stat s)
s
- public boolean addFlag(Flag.FlagType flag)
flag
- public void addAllFlags(String flags)
flags
- public boolean removeFlag(Flag.FlagType flag)
flag
- public boolean isFlagged(Flag.FlagType flag)
flag
- public String getFlags()
public String getValueFlagged()
Copyright © 2020. All rights reserved.