Average (query directive)

From WandoraWiki
(Difference between revisions)
Jump to: navigation, search
 
 

Latest revision as of 13:13, 25 August 2009

[edit] Description

Returns the average of values of active column.

[edit] Constructor

Average(Directive directive)

[edit] 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