Examples of toArray()


Examples of gnu.trove.list.TByteList.toArray()

    }

    /** {@inheritDoc} */
    public void sort(int fromIndex, int toIndex) {
        TByteList tmp = subList(fromIndex, toIndex);
        byte[] vals = tmp.toArray();
        Arrays.sort(vals);
        set(fromIndex, vals);
    }

    /** {@inheritDoc} */
 
View Full Code Here

Examples of gnu.trove.list.TCharList.toArray()

    }

    /** {@inheritDoc} */
    public void sort(int fromIndex, int toIndex) {
        TCharList tmp = subList(fromIndex, toIndex);
        char[] vals = tmp.toArray();
        Arrays.sort(vals);
        set(fromIndex, vals);
    }

    /** {@inheritDoc} */
 
View Full Code Here

Examples of gnu.trove.list.TDoubleList.toArray()

    }

    /** {@inheritDoc} */
    public void sort(int fromIndex, int toIndex) {
        TDoubleList tmp = subList(fromIndex, toIndex);
        double[] vals = tmp.toArray();
        Arrays.sort(vals);
        set(fromIndex, vals);
    }

    /** {@inheritDoc} */
 
View Full Code Here

Examples of gnu.trove.list.TFloatList.toArray()

    }

    /** {@inheritDoc} */
    public void sort(int fromIndex, int toIndex) {
        TFloatList tmp = subList(fromIndex, toIndex);
        float[] vals = tmp.toArray();
        Arrays.sort(vals);
        set(fromIndex, vals);
    }

    /** {@inheritDoc} */
 
View Full Code Here

Examples of gnu.trove.list.TIntList.toArray()

    }

    /** {@inheritDoc} */
    public void sort(int fromIndex, int toIndex) {
        TIntList tmp = subList(fromIndex, toIndex);
        int[] vals = tmp.toArray();
        Arrays.sort(vals);
        set(fromIndex, vals);
    }

    /** {@inheritDoc} */
 
View Full Code Here

Examples of gnu.trove.list.TLongList.toArray()

    }

    /** {@inheritDoc} */
    public void sort(int fromIndex, int toIndex) {
        TLongList tmp = subList(fromIndex, toIndex);
        long[] vals = tmp.toArray();
        Arrays.sort(vals);
        set(fromIndex, vals);
    }

    /** {@inheritDoc} */
 
View Full Code Here

Examples of gnu.trove.list.TShortList.toArray()

    }

    /** {@inheritDoc} */
    public void sort(int fromIndex, int toIndex) {
        TShortList tmp = subList(fromIndex, toIndex);
        short[] vals = tmp.toArray();
        Arrays.sort(vals);
        set(fromIndex, vals);
    }

    /** {@inheritDoc} */
 
View Full Code Here

Examples of gnu.trove.list.array.TByteArrayList.toArray()

                                byteList.add((byte) 0);
                            }
                        }
                    }
                }
                value.setBytes(ByteString.copyFrom(byteList.toArray()));
            }
            return value.build();
        }

        private void extractMap(JsonElement json, JsonDeserializationContext context, EntityData.Value.Builder value) {
View Full Code Here

Examples of gnu.trove.list.array.TDoubleArrayList.toArray()

        }
      }
      nameMapping[classIndex++] = classDirString;
    }

    return new Tuple3<>(docList, new DenseDoubleVector(prediction.toArray()),
        nameMapping);
  }
}
View Full Code Here

Examples of gnu.trove.list.array.TFloatArrayList.toArray()

    System.out.println("熵均值:"+MyArrays.average(entropy));
    System.out.println("熵非零个数:"+MyArrays.countNoneZero(entropy));
    System.out.println("熵直方图:"+MyStrings.toString(MyArrays.histogram(entropy, 10)));
   
    newfeat.setStopIncrement(freeze);
    cl.setWeights(ww.toArray());

    float[] www = cl.getWeights();
    c = MyArrays.countNoneZero(www);

    System.out.println("\n优化后")
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.