Fix for bug. The variances used to calculated std, should only be taken from those which are defined in the subset.
Regarding bug #21954, (https://gna.org/bugs/index.php?21954) - Order of spectrum.error_analysis is important.
Authored by: tlinnet 2014-04-23
Parent: [r22834]
Child: [r22836]