Search in sources :

Example 1 with OrthogonalDistribution

use of org.nd4j.linalg.api.rng.distribution.impl.OrthogonalDistribution in project nd4j by deeplearning4j.

the class RandomTests method testOrthogonalDistribution1.

@Test
public void testOrthogonalDistribution1() {
    val dist = new OrthogonalDistribution(1.0);
    val array = dist.sample(new int[] { 6, 9 });
    log.info("Array: {}", array);
}
Also used : lombok.val(lombok.val) OrthogonalDistribution(org.nd4j.linalg.api.rng.distribution.impl.OrthogonalDistribution) BaseNd4jTest(org.nd4j.linalg.BaseNd4jTest) Test(org.junit.Test)

Aggregations

lombok.val (lombok.val)1 Test (org.junit.Test)1 BaseNd4jTest (org.nd4j.linalg.BaseNd4jTest)1 OrthogonalDistribution (org.nd4j.linalg.api.rng.distribution.impl.OrthogonalDistribution)1