Package stallone.ints

Examples of stallone.ints.PrimitiveIntArray



    public IIntArray arrayFrom(float[] a)
    {
        int[] res = PrimitiveIntTools.from(a);
        return (new PrimitiveIntArray(res));
    }
View Full Code Here


       is returned.
    */
    public IIntArray arrayRandomIndexes(int N, int n)
    {
        int[] res = PrimitiveIntTools.randomIndexes(N,n);
        return (new PrimitiveIntArray(res));
    }
View Full Code Here

    previous value by step.
     */
    public IIntArray arrayRange(int start, int end, int step)
    {
        int[] res = PrimitiveIntTools.range(start, end, step);
        return (new PrimitiveIntArray(res));
    }
View Full Code Here

    previous value by step.
     */
    public IIntArray arrayRange(int start, int end)
    {
        int[] res = PrimitiveIntTools.range(start, end);
        return (new PrimitiveIntArray(res));
    }
View Full Code Here

    previous value by step.
     */
    public IIntArray arrayRange(int end)
    {
        int[] res = PrimitiveIntTools.range(end);
        return (new PrimitiveIntArray(res));
    }
View Full Code Here

     * Returns an array with cluster allocations. <code>int[i]</code> is the cluster to which data point i was
     * allocated.
     */
    public IIntArray getClusters()
    {
        return(new PrimitiveIntArray(CLUSTER));
    }
View Full Code Here

    /**
     * Returns an array containing the number of data points in each cluster.
     */
    public IIntArray getClusterSize()
    {
        return(new PrimitiveIntArray(CLUSTER_SIZE));
    }
View Full Code Here

    /**
     * Returns the permutation which is needed to arrange the data points according to their cluster.
     */
    public IIntArray getPermutationArray()
    {
        return(new PrimitiveIntArray(SORTARRAY));
    }
View Full Code Here

        }

        numbers[dim-1] = 1;
        for (int i=(dim-2); i>=0; i--)
            numbers[i] = numbers[i+1] * sizes[i];
        preNeighborIndexes = new IntArrayView(new PrimitiveIntArray(dim*2), 0, dim*2);
        preMultIndex = new IntArrayView(new PrimitiveIntArray(dim), 0, dim);
        prePoint = new DoubleArrayView(doublesNew.array(dim),0, dim);
        preNeighborMultIndexes = new IntArrayView(new PrimitiveIntTable(dim*2,dim), 0, 0, dim*2, dim);
    }
View Full Code Here

TOP

Related Classes of stallone.ints.PrimitiveIntArray

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.