datafu-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sam Steingold (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DATAFU-45) RFE: CartesianProduct
Date Tue, 29 Apr 2014 19:31:16 GMT
Sam Steingold created DATAFU-45:
-----------------------------------

             Summary: 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(keywords)});
{code}




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message