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