Documentation of 'cc.redberry.core.tensor.random.RandomTensor' Java class
RandomTensor
cc.redberry.core.tensor.random

Class RandomTensor



  • public final class RandomTensor
    extends java.lang.Object
    Since:
    1.0
    • Constructor Detail

      • RandomTensor

        public RandomTensor()
        Creates random with default values. Same as new RandomTensor(2, 5, new int[]{0, 0, 0, 0}, new int[]{4, 0, 0, 0}, true)
      • RandomTensor

        public RandomTensor(boolean generateNewDescriptors)
      • RandomTensor

        public RandomTensor(int minDiffNDs,
                            int maxDiffNDs,
                            int[] minIndices,
                            int[] maxIndices,
                            boolean withSymmetries,
                            boolean generateNewDescriptors,
                            org.apache.commons.math3.random.RandomGenerator random)
        Parameters:
        minDiffNDs - min number of different tensors
        maxDiffNDs - max number of different tensors
        minIndices - min number of indices in each tensor.
        maxIndices - max number of indices in each tensor.
        withSymmetries - add symmetries to tensors
        generateNewDescriptors - if false then only specified tensors will be used
        random - random generator
      • RandomTensor

        public RandomTensor(int minDiffNDs,
                            int maxDiffNDs,
                            int[] minIndices,
                            int[] maxIndices,
                            boolean withSymmetries,
                            boolean generateNewDescriptors,
                            long seed)
        Parameters:
        minDiffNDs - minimum number of different tensors
        maxDiffNDs - maximum number of different tensors
        minIndices - minimum number of indices in each tensor.
        maxIndices - maximum number of indices in each tensor.
        withSymmetries - add symmetries to tensors
        generateNewDescriptors - if false then only specified tensors will be used
        seed - random seed
      • RandomTensor

        public RandomTensor(int minDiffNDs,
                            int maxDiffNDs,
                            int[] minIndices,
                            int[] maxIndices,
                            boolean withSymmetries,
                            boolean generateNewDescriptors)
        Parameters:
        minDiffNDs - minimum number of different tensors
        maxDiffNDs - maximum number of different tensors
        minIndices - minimum number of indices in each tensor.
        maxIndices - maximum number of indices in each tensor.
        withSymmetries - add symmetries to tensors
        generateNewDescriptors - if false then only specified tensors will be used
    • Method Detail

      • getRandom

        public org.apache.commons.math3.random.RandomGenerator getRandom()
      • clearNamespace

        public void clearNamespace()
      • reset

        public void reset()
      • reset

        public void reset(long seed)
      • nextInt

        public final int nextInt(int n)
      • getSeed

        public long getSeed()
      • addToNamespace

        public void addToNamespace(Tensor... tensors)
      • getInitialNamespaceSize

        public int getInitialNamespaceSize()
      • getNamespaceSize

        public int getNamespaceSize()
      • nextProduct

        public Tensor nextProduct(int minProductSize,
                                  Indices indices)
      • nextProduct

        public Tensor nextProduct(int minProductSize)
      • nextSum

        public Tensor nextSum(int sumSize,
                              int productSize,
                              Indices indices)
      • nextPermutation

        public int[] nextPermutation(int dimension)
      • shuffle

        public final void shuffle(int[] target)
      • nextTensorTree

        public Tensor nextTensorTree(int depth,
                                     int productSize,
                                     int sumSize,
                                     Indices indices)
      • nextSumTree

        public Tensor nextSumTree(int depth,
                                  int productSize,
                                  int sumSize,
                                  Indices indices)
      • nextProductTree

        public Tensor nextProductTree(int depth,
                                      int productSize,
                                      int sumSize,
                                      Indices indices)

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.