Package org.apache.pig.impl.builtin

Examples of org.apache.pig.impl.builtin.FindQuantiles


            samples.add(t);
        }
        in.set(0, new Integer(numReduceres));
        in.set(1, samples);
       
        FindQuantiles fq = new FindQuantiles();
       
        Map<String, Object> res = fq.exec(in);
       
        InternalMap weightedPartsData = (InternalMap) res.get(FindQuantiles.WEIGHTED_PARTS);
        Iterator<Object> it = weightedPartsData.values().iterator();
        float[] probVec = getProbVec((Tuple)it.next());
        new DiscreteProbabilitySampleGenerator(probVec);
View Full Code Here


        Tuple in = tFact.newTuple(2);

        in.set(0, new Integer(numReduceres));
        in.set(1, samples);
       
        FindQuantiles fq = new FindQuantiles();
       
        Map<String, Object> res = fq.exec(in);
        return res;
    }
View Full Code Here

TOP

Related Classes of org.apache.pig.impl.builtin.FindQuantiles

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.