[#BloombergLP-bdlsta-Moment-0a-meanIfValid] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlsta.adoc[bdlsta]::xref:BloombergLP/bdlsta/Moment-0a.adoc[Moment<BloombergLP::bdlsta::MomentLevel::e_M3>]::meanIfValid :relfileprefix: ../../../ :mrdocs: Load into the specified `result`, the mean of the data set. Return 0 on success, and a non‐zero value otherwise. Specifically, `e_INADEQUATE_DATA` is returned if `1 > count`. == Synopsis Declared in `<bdlsta_moment.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int meanIfValid(double* result) const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#