public class Analytics extends Object
| Constructor and Description |
|---|
Analytics(String keySpace,
Set<String> subTypeIds,
Set<String> statisticsResourceTypeIds)
Create a graph computer from a Mindmaps Graph.
|
| Modifier and Type | Method and Description |
|---|---|
long |
count()
Count the number of instances in the graph.
|
Map<Instance,Long> |
degrees()
Compute the number of relations that each instance takes part in.
|
void |
degreesAndPersist()
Compute the number of relations that each instance takes part in and persist this information in the graph.
|
Optional<Number> |
max()
Maximum value of the selected resource-type.
|
Optional<Double> |
mean()
Compute the mean of instances of the selected resource-type.
|
Optional<Number> |
median()
Compute the median of instances of the selected resource-type.
|
Optional<Number> |
min()
Minimum value of the selected resource-type.
|
Optional<Double> |
std()
Compute the standard deviation of instances of the selected resource-type.
|
Optional<Number> |
sum()
Sum of values of the selected resource-type.
|
public static final String degree
public Analytics(String keySpace, Set<String> subTypeIds, Set<String> statisticsResourceTypeIds)
subtypes argument. All subtypes of the given types are included when deciding whether to
include an instance.subTypeIds - the set of type ids the computer will use to filter instancesstatisticsResourceTypeIds - the set of resource type ids statistics will be working onpublic long count()
public Optional<Double> mean()
public Optional<Number> median()
public Optional<Double> std()
public Map<Instance,Long> degrees()
public void degreesAndPersist()
Copyright © 2016. All rights reserved.