Help:Mode format

From semantic-mediawiki.org
Mode format
Displays the value appearing most often in queried numerical data
Further Information
Provided by: Extension "Semantic Result Formats"
Added: 3.2.0
Removed: still supported
Requirements: none
Format name: mode
Enabled? Indicates whether the result format is enabled by default upon installation of the respective extension. yes
Authors: Florian Breitenlacher
Categories: math
Table of Contents

The result format mode[1], part of extension "Semantic Result Formats"Provides additional formats for semantic queries, can be used to display the value appearing most often of all numerical values in the result. If no single value is represented most often, zero ist returned.

Please be aware that mulitple assignments of the same value for a property is not possible in SMW. E. g. if you assign the values 4, 6, 7, 4, 5 to a numerical page property, the mathematical mode is "4", but SMW will only have the values 4, 5, 6, 7 set since setting the same value twice results in only one value set.

Parameters

This result format does not provide format specific parameters.

Example[edit]

Syntax
{{#ask:
 [[Category:City]]
 |?Population
 |format=mode
}}
Result

0 (verify)

See also[edit]

PageFormatDescriptionProvided byAdded inEnabled
Average formataverageDisplays the average of all queried numerical dataSemantic Result Formats1.4.2true
Count formatcountReturns just the number of results, instead of the results themselves.Semantic MediaWiki0.7true
Interquartilemean formatinterquartilemeanCalculates the interquartile mean in queried numerical dataSemantic Result Formats3.2.0true
Interquartilerange.exc formatinterquartilerange.excCalculates the interquartile range in queried numerical dataSemantic Result Formats3.2.0true
Interquartilerange formatinterquartilerangeCalculates the interquartile range in queried numerical dataSemantic Result Formats3.2.0true
Max formatmaxDisplays the maximum of all queried numerical dataSemantic Result Formats1.4.2true
Median formatmedianDisplays the median of all queried numerical dataSemantic Result Formats1.6.0true
Min formatminDisplays the minimum of all queried numerical dataSemantic Result Formats1.4.2true
Mode formatmodeDisplays the value appearing most often in queried numerical dataSemantic Result Formats3.2.0true
Product formatproductDisplays the product of all queried numerical dataSemantic Result Formats1.6.0true
Quartillower formatquartillowerCalculates the lower quartile in queried numerical dataSemantic Result Formats3.2.0true
Quartillower.exc formatquartillower.excCalculates the lower quartile in queried numerical dataSemantic Result Formats3.2.0true
Quartilupper formatquartilupperCalculates the upper quartile in queried numerical dataSemantic Result Formats3.2.0true
Quartilupper.exc formatquartilupper.excCalculates the upper quartile in queried numerical dataSemantic Result Formats3.2.0true
Range formatrangeCalculates the range in queried numerical dataSemantic Result Formats3.2.0true
Samplestandarddeviation formatsamplestandarddeviationCalculates the samplestandarddeviation in queried numerical dataSemantic Result Formats3.2.0true
Standarddeviation formatstandarddeviationCalculates the standarddeviation in queried numerical dataSemantic Result Formats3.2.0true
Sum formatsumDisplays the sum of all queried numerical dataSemantic Result Formats1.4.2true
Variance formatvarianceDisplays the variance in queried numerical dataSemantic Result Formats3.2.0true
Samplevariance formatsamplevarianceDisplays the sample variance in queried numerical dataSemantic Result Formats3.2.0true


Note[edit]