A feature request has been raised on GitHub

https://github.com/Jermolene/TiddlyWiki5/issues/4431


But I appreciate if anybody has idea to calculate the STD using the current 
math operators.

--Mohammad

On Friday, January 31, 2020 at 1:02:01 PM UTC+3:30, Mohammad wrote:
>
> Using the current status of mathematical operation supported by Tiddlywiki 
> 5.1.21+ and without using third party plugins
> is there any way to calculate the standard deviation?
>
>
> [image: std.png]
>  
>
>
> Use case:
>
>  I have a tiddler per student and these tiddler have a field called score 
> which keep the student score. I wish to calculate the class standard 
> deviation for this course scores.
>
> Ref:
>  https://tiddlywiki.com/#Mathematics%20Operators
>  https://en.wikipedia.org/wiki/Standard_deviation
>
>
> I can calculate the average or mean (mu in the above picture, the formula 
> at the right)
>
> \define mean(filter)
> <$vars
>    xcount ={{{ [subfilter<__filter__>count[]]  }}}
>    xsum   ={{{ [subfilter<__filter__>sum[]]    }}} >
>   <$text text={{{ [<xsum>divide<xcount>]       }}}/>
> </$vars>
> \end
>
> For example
>
> mean:   <<mean filter:"[tag[student]has[score]get[score]]">>
>
> --Mohammad
>
> p.s:
> If TW supports power operator like "1 2 +[power[2]" and "1 2 
> +[power[0.5]]" then it was straight forward to compute the standard 
> deviation.
> So, the question may be how implement fractional and complete power in TW
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/79fddf0e-bd33-4be6-a530-e2fc73034ced%40googlegroups.com.

Reply via email to