-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
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}')
;Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels