You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Nazerke Seidan (JIRA)" <ji...@apache.org> on 2019/04/10 18:18:00 UTC
[jira] [Commented] (SOLR-13391) Add variance and standard deviation
stream evaluators
[ https://issues.apache.org/jira/browse/SOLR-13391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16814745#comment-16814745 ]
Nazerke Seidan commented on SOLR-13391:
---------------------------------------
[~joel.bernstein], I have ready code on this to the pull request. What I used were StatUtils.variance(data) and Math.sqrt(StatUtils.variance(data)) instead of StatUtils.mean(data) in the MeanEvaluator.java.
> Add variance and standard deviation stream evaluators
> -----------------------------------------------------
>
> Key: SOLR-13391
> URL: https://issues.apache.org/jira/browse/SOLR-13391
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Components: streaming expressions
> Reporter: Nazerke Seidan
> Priority: Minor
> Labels: pull-request-available
>
> It seems variance and standard deviation stream evaluators are not supported by any of the solr version. For example,
> let(echo="m,v,sd", arr=array(1,3,3), m=mean(a), v=var(a), sd=stddev(a))
> So far, only the mean function is implemented. I think it is useful to have var and sttdev functions separately as a stream evaluator.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org