Skip to content

investigate wrong external bind #12

@glathoud

Description

@glathoud

Below, why is get_mean_stddev bound to an external function using transfun's current implementation?

var get_mean = tfun.redinit( '0', '+' ).next( '/n' )
,  get_stddev = tfun
    .decl( 'mean_value', get_mean )
    .map( 'v-mean_value' )
    .map( 'v*v' )
    .sum()
    .next( 'Math.sqrt(current/(n-1))' )  // unbiased std dev estimation

// compute both mean and stddev at once
, get_mean_stddev = get_stddev
    .next( '{stddev:current, mean:mean_value}')
;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions