Your preferences have been saved!
» Version - //package mvplan.util; import java.util.HashMap; public class Version implements Comparable<Version> {   private int majorVersion;   private int minorVersion;   private int patchVersion;   private String statusString;   private String dateString;   private HashMap lookupTable;   public static final int UNDEFINED = 0;... 17 Feb 12 » Utility class for generating the k-subsets of the numbers 0 - /**  * Utility class for generating the k-subsets of the numbers 0 to n  *   * @author ryanm  */ public class SubsetGenerator {   private final int desiredSubsetSize;   private final SubsetIterator iterator;   private int[] nextSubset = null;   /**... 17 Feb 12 » Linear Interpolation - import java.math.BigDecimal; import java.math.BigInteger; import java.util.Arrays; public class Util{     public static final double[] interpLinear(double[] x, double[] y, double[] xi) throws IllegalArgumentException {         if (x.length != y.length) {             throw new IllegalArgumentException("X and Y must be the same length");         }         if (x.length == 1) {             throw new IllegalArgumentException("X must contain more than one value");... 17 Feb 12 » implements the LZF lossless data compression algorithm - */ public final class CompressLZF implements Compressor {     /**      * The number of entries in the hash table. The size is a trade-off between      * hash collisions (reduced compression) and speed (amount that fits in CPU      * cache).      */     private static final int HASH_SIZE = 1 << 14;     /**      * The maximum number of literals in a chunk (32).... 17 Feb 12 » Permutator test - import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.NoSuchElementException; import java.util.Set; /**  *... 17 Feb 12 » Reverse Polish Notation - //package rpn; import java.util.Stack; import java.util.Scanner; /**  * ReversePolishNotation is a simple application which will test several RPN  * equations to make sure the calcRPN method works properly.  *   * @author Alex Laird  * @version 1.0 File: ReversePolishNotation.java Created: Oct 2008  */... 17 Feb 12 » LU Decomposition - //package aima.core.util.math; import java.io.BufferedReader; import java.io.PrintWriter; import java.io.StreamTokenizer; import java.text.DecimalFormat; import java.text.DecimalFormatSymbols; import java.text.NumberFormat; import java.util.List; import java.util.Locale;  */... 17 Feb 12 » Utilities for flop (floating-point operation) counting. - public class Flops {   private static long flops = 0;   // this figures taken from Tom Minka's lightspeed   private static final int EXP_FLOPS = 40;   private static final int LOG_FLOPS = 20;   private static final int DIV_FLOPS = 8;   private static final int SQRT_FLOPS = 8;   public static long getFlops ()   {     return flops;... 17 Feb 12 » An extendable Graph datastructure. - //package org.six11.util.adt; import java.util.List; import java.util.Queue; import java.util.Map; import java.util.HashMap; import java.util.ArrayList; /**  * An extendable Graph datastructure. This provides a starting point for a host of graph  * datastructure applications, such as scheduling algorithms, decision trees, resource conflict  * resolution, etc. It also may make you better looking.... 17 Feb 12 » A programmable Finite State Machine implementation. - //import org.six11.util.Debug; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener;  **/ public class FSM { // This class implements a Flying Spaghetti Monster... 17 Feb 12