FHIR Chat · variance and pop variance · cql

Stream: cql

Topic: variance and pop variance


view this post on Zulip Erich Schulz (Jul 09 2016 at 22:26):

i think the 2 test case values are reversed...

view this post on Zulip Erich Schulz (Jul 09 2016 at 22:26):

// PopulationVariance
//  should be able to find PopulationVariance of a list
    PopulationVariance_v: 2.5,

// Variance
//  should be able to find Variance of a list
    Variance_v: 2,

view this post on Zulip Erich Schulz (Jul 09 2016 at 22:27):

i have a test spreadsheet here

view this post on Zulip Erich Schulz (Jul 09 2016 at 22:29):

// @Test: Variance
define Variance_v: Variance({1,2,3,4,5})
// @Test: PopulationVariance
define PopulationVariance_v: PopulationVariance({1.0,2.0,3.0,4.0,5.0})

Last updated: Apr 12 2022 at 19:14 UTC