Return-Path: X-Original-To: apmail-datafu-dev-archive@minotaur.apache.org Delivered-To: apmail-datafu-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 409601073D for ; Tue, 29 Apr 2014 23:22:40 +0000 (UTC) Received: (qmail 23143 invoked by uid 500); 29 Apr 2014 23:22:39 -0000 Delivered-To: apmail-datafu-dev-archive@datafu.apache.org Received: (qmail 23105 invoked by uid 500); 29 Apr 2014 23:22:39 -0000 Mailing-List: contact dev-help@datafu.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@datafu.incubator.apache.org Delivered-To: mailing list dev@datafu.incubator.apache.org Received: (qmail 23097 invoked by uid 99); 29 Apr 2014 23:22:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Apr 2014 23:22:39 +0000 X-ASF-Spam-Status: No, hits=-2000.7 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 29 Apr 2014 23:22:38 +0000 Received: (qmail 22450 invoked by uid 99); 29 Apr 2014 23:22:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Apr 2014 23:22:17 +0000 Date: Tue, 29 Apr 2014 23:22:17 +0000 (UTC) From: "Matthew Hayes (JIRA)" To: dev@datafu.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DATAFU-45) RFE: CartesianProduct MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DATAFU-45?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13984947#comment-13984947 ] Matthew Hayes commented on DATAFU-45: ------------------------------------- Hmm I don't follow what you're trying to do. The weight here is not a bag, so why do you want to cross it with keywords? > RFE: CartesianProduct > --------------------- > > Key: DATAFU-45 > URL: https://issues.apache.org/jira/browse/DATAFU-45 > Project: DataFu > Issue Type: New Feature > Reporter: Sam Steingold > > Given two bags, produce their [Cartesian product|http://en.wikipedia.org/wiki/Cartesian_product]: > {code} > B1: bag{T1} > B2: bag{T2} > CartesianProduct(B1,B2): bag{(T1,T2)} > {code} > Use case: > {code} > toks = TOKENIZE((charray)$0,','); > kwds = CartesianProduct(toks, {1.0/(double)SIZE(toks)}); > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)