Average (query directive)

From WandoraWiki
Jump to: navigation, search

Description

Returns the average of values of active column.

Constructor

Average(Directive directive)

Examples

Following returns the average number of instances all topics have in the topic map.

importPackage(org.wandora.query2);
new Average(
  new Count(new Instances())
  .from(new AllTopics())
)
Personal tools