Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 24417 invoked from network); 14 Oct 2010 08:53:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Oct 2010 08:53:05 -0000 Received: (qmail 29917 invoked by uid 500); 14 Oct 2010 08:53:04 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 29772 invoked by uid 500); 14 Oct 2010 08:53:01 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 29764 invoked by uid 99); 14 Oct 2010 08:53:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Oct 2010 08:53:00 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of randall.leeds@gmail.com designates 209.85.161.52 as permitted sender) Received: from [209.85.161.52] (HELO mail-fx0-f52.google.com) (209.85.161.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Oct 2010 08:52:52 +0000 Received: by fxm16 with SMTP id 16so3520669fxm.11 for ; Thu, 14 Oct 2010 01:52:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=ReIF8QP7LC4Z/cyGM5F6q73D+zPvt/or+6ERb5/4wXQ=; b=FiTAsIIK741FUuD/Jz7eFSUEBETIZySBkDuZZNm666LKd7FoElLle80kmSWIPGQ7lD am74jNznqMCYWZc5jk8Rm0niNlnFSh9qYW9vt2/UZV2iWFM2BbAZxpu9SqSRjqNnAM9m B74dM35owFiOwcxT+23oP1I7BLAOpJstjbrJM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=WKJLE1OffbunhwEq67wk3iiQscBg5DDIhkpW7HLpIaMipcbIXzXnpt9A0SiZqFpoxj nO2/o3FHOvbhvX1ou/6HvMGUAVraNElhB6zcM6kWb6VfyxnZqpuOTZJYicJRzVS9yUX2 MsalRdhsRf89T7dhzAUz3yrM4vm4yExV0HHtM= MIME-Version: 1.0 Received: by 10.103.121.20 with SMTP id y20mr1770807mum.5.1287046351557; Thu, 14 Oct 2010 01:52:31 -0700 (PDT) Received: by 10.223.5.215 with HTTP; Thu, 14 Oct 2010 01:52:31 -0700 (PDT) In-Reply-To: References: Date: Thu, 14 Oct 2010 01:52:31 -0700 Message-ID: Subject: Re: Is their a straightforward way of calculating mean value? From: Randall Leeds To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org http://wiki.apache.org/couchdb/Built-In_Reduce_Functions#A_stats Using the string "_stats" as your reduce function will get you a built-in reduction that contains both "count" and "sum" fields in the output. On Thu, Oct 14, 2010 at 00:29, sleepy wrote: > Hi, > > I'm doing some statistics on my data and wondering is there > an straightforward way of calculating the mean value through reduce > function. > Maybe a build-in reduce function or something... > > sleepnova >