Java List Copy copyProbabilities(List targetProbs, List destinationProbs)

Here you can find the source of copyProbabilities(List targetProbs, List destinationProbs)

Description

Copy the values of target probs into destination probs

License

Open Source License

Declaration

public static void copyProbabilities(List<Integer> targetProbs,
        List<Integer> destinationProbs) 

Method Source Code

//package com.java2s;

import java.util.List;

public class Main {
    /** Copy the values of target probs into destination probs */
    public static void copyProbabilities(List<Integer> targetProbs,
            List<Integer> destinationProbs) {
        for (int index = 0; index < targetProbs.size(); index++) {
            destinationProbs.set(index, targetProbs.get(index));
        }/*  www .  j  a  v a  2  s. c om*/
    }
}

Related

  1. copyNullSafeMutableList(Collection list)
  2. copyObjectList(List objects)
  3. copyOf(List list)
  4. copyOf(List values)
  5. copyOfRange(List list, int from, int to)
  6. copyQueryFilters(List queryFilters)
  7. copySafelyToObjectList(java.util.List list)
  8. copyStringList(List l1)
  9. copyStringList(List list)

  10. HOME | Copyright © www.java2s.com 2016