[#BloombergLP-bdlsta-Moment-08-variance] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlsta.adoc[bdlsta]::xref:BloombergLP/bdlsta/Moment-08.adoc[Moment]::variance :relfileprefix: ../../../ :mrdocs: Return the variance of the data set. The behavior is undefined unless `2 <= count`. == Synopsis Declared in `<bdlsta_moment.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- double variance() const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#