Package com.meapsoft

Examples of com.meapsoft.Heap


            targetChunk.addFeature(Integer.MIN_VALUE);
       
        dist.setTarget(targetChunk);
       
        // maintain a set of chunks sorted using dist from targetChunk
        Heap chunks = null;
        if(reverseSort)
            chunks = new MaxHeap(dist);
        else
            chunks = new MinHeap(dist);
        chunks.addAll(featFile.chunks);
       
        NumberFormat fmt = NumberFormat.getInstance();
        fmt.setMaximumFractionDigits(3);
       
        double currTime = 0;
        while(chunks.size() > 0)
        {
            FeatChunk match = (FeatChunk)chunks.remove(0);

            // turn match chunk into an EDL chunk
            EDLChunk nc = new EDLChunk(match, currTime);

            if(debug)
View Full Code Here

TOP

Related Classes of com.meapsoft.Heap

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.