Return-Path: Delivered-To: apmail-mahout-user-archive@www.apache.org Received: (qmail 63732 invoked from network); 11 Feb 2011 21:37:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Feb 2011 21:37:17 -0000 Received: (qmail 66319 invoked by uid 500); 11 Feb 2011 21:37:16 -0000 Delivered-To: apmail-mahout-user-archive@mahout.apache.org Received: (qmail 66189 invoked by uid 500); 11 Feb 2011 21:37:15 -0000 Mailing-List: contact user-help@mahout.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@mahout.apache.org Delivered-To: mailing list user@mahout.apache.org Received: (qmail 66181 invoked by uid 99); 11 Feb 2011 21:37:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Feb 2011 21:37:15 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ted.dunning@gmail.com designates 209.85.161.170 as permitted sender) Received: from [209.85.161.170] (HELO mail-gx0-f170.google.com) (209.85.161.170) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Feb 2011 21:37:07 +0000 Received: by gxk20 with SMTP id 20so1188338gxk.1 for ; Fri, 11 Feb 2011 13:36:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=0ejkNQpsL9/dEdUP7g5ixbhf7IQjgNLtLj1ykzYMP6o=; b=VOLhJLRVVA1ZQtZCd3V6xiQ4byvGRVbMrfTuUtloFt1GvSfzlwdmjMaATbD6rbDp9B sdno7agt6DEo/+9TATSEO2U2iaFDF6y4ly6WgL6+x+hfIUD3I1KIV5d87My4bJw3bCj0 ENmjXC5qBmWre+IY60gEU+491Dhf8QdZto/+k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=CenAyZQL478oWF8ThZ5a+cAwhdTm9GZA4Ls3DWN54vdHV77gLk0In6MuULOEoweEkQ Wzcn7enDRGa02KFIVs+3x+Bf0VbpclUTFFHEy0VquR58IBQ8DHiwk3cabBSxUl0Bj1Xf r5HKMt1WaIiUKYKwxc6IU0tDnyKgZlvZ/d/0Y= Received: by 10.236.108.135 with SMTP id q7mr1894638yhg.20.1297460206509; Fri, 11 Feb 2011 13:36:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.236.103.5 with HTTP; Fri, 11 Feb 2011 13:36:26 -0800 (PST) In-Reply-To: <4D557C44.6070403@apache.org> References: <4D557C44.6070403@apache.org> From: Ted Dunning Date: Fri, 11 Feb 2011 13:36:26 -0800 Message-ID: Subject: Re: cardinality vs size To: user@mahout.apache.org, ssc@apache.org Content-Type: multipart/alternative; boundary=90e6ba5bc9d9b82097049c087eaa X-Virus-Checked: Checked by ClamAV on apache.org --90e6ba5bc9d9b82097049c087eaa Content-Type: text/plain; charset=UTF-8 +10!! On Fri, Feb 11, 2011 at 10:13 AM, Sebastian Schelter wrote: > Maybe we should rename them to something like dimension and initialCapacity > then? > > --sebastian > > > On 11.02.2011 18:49, Weishung Chung wrote: > >> Thanks a lot for the explanation. This really helps me out :) >> >> On Fri, Feb 11, 2011 at 11:38 AM, Ted Dunning >> wrote: >> >> Argh! >>> >>> This is a really confusing API. >>> >>> Cardinality is the dimension of the vector. >>> >>> Size is the number of storage elements that you want to have in the >>> vector >>> initially, much in the style of ArrayList where you specify how many >>> elements to pre-allocate. >>> >>> On Fri, Feb 11, 2011 at 8:33 AM, Weishung Chung >>> wrote: >>> >>> Is cardinality the original size of the vector including zeros and size >>>> >>> is >>> >>>> the number of nonzeros in the vector? >>>> I am referring to >>>> >>>> public RandomAccessSparseVector(int cardinality, int size) >>>> >>>> Thank you :) >>>> >>>> > --90e6ba5bc9d9b82097049c087eaa--