예제 #1
0
 public static void RandomBernoulli(Tensor result, SeedSource seedSource, float p)
 {
     OpRegistry.Invoke("random_bernoulli", result, GetSeed(seedSource), p);
 }
예제 #2
0
 public static void RandomLogNormal(Tensor result, SeedSource seedSource, float mean, float stdv)
 {
     OpRegistry.Invoke("random_lognormal", result, GetSeed(seedSource), mean, stdv);
 }
예제 #3
0
 public static void RandomGeometric(Tensor result, SeedSource seedSource, float p)
 {
     OpRegistry.Invoke("random_geometric", result, GetSeed(seedSource), p);
 }
예제 #4
0
 public static void RandomExponential(Tensor result, SeedSource seedSource, float lambda)
 {
     OpRegistry.Invoke("random_exponential", result, GetSeed(seedSource), lambda);
 }
예제 #5
0
 public static void RandomCauchy(Tensor result, SeedSource seedSource, float median, float sigma)
 {
     OpRegistry.Invoke("random_cauchy", result, GetSeed(seedSource), median, sigma);
 }
예제 #6
0
 private static int?GetSeed(SeedSource src)
 {
     return(src == null ? (int?)null : src.NextSeed());
 }
예제 #7
0
 public static void RandomUniform(Tensor result, SeedSource seedSource, float min, float max)
 {
     OpRegistry.Invoke("random_uniform", result, GetSeed(seedSource), min, max);
 }
예제 #8
0
 /// <summary>
 /// Randoms the bernoulli.
 /// </summary>
 /// <param name="result">The result.</param>
 /// <param name="seedSource">The seed source.</param>
 /// <param name="p">The p.</param>
 public static void RandomBernoulli(SeedSource seedSource, float p)
 {
     OpRegistry.Invoke("random_bernoulli", null, GetSeed(seedSource), p);
 }
예제 #9
0
 /// <summary>
 /// Randoms the normal.
 /// </summary>
 /// <param name="result">The result.</param>
 /// <param name="seedSource">The seed source.</param>
 /// <param name="mean">The mean.</param>
 /// <param name="stdv">The STDV.</param>
 public static void RandomNormal(NDArray result, SeedSource seedSource, float mean, float stdv)
 {
     OpRegistry.Invoke("random_normal", result, GetSeed(seedSource), mean, stdv);
 }
예제 #10
0
 /// <summary>
 /// Randoms the geometric.
 /// </summary>
 /// <param name="result">The result.</param>
 /// <param name="seedSource">The seed source.</param>
 /// <param name="p">The p.</param>
 public static void RandomGeometric(SeedSource seedSource, float p)
 {
     OpRegistry.Invoke("random_geometric", null, GetSeed(seedSource), p);
 }
예제 #11
0
 /// <summary>
 /// Randoms the cauchy.
 /// </summary>
 /// <param name="result">The result.</param>
 /// <param name="seedSource">The seed source.</param>
 /// <param name="median">The median.</param>
 /// <param name="sigma">The sigma.</param>
 public static void RandomCauchy(SeedSource seedSource, float median, float sigma)
 {
     OpRegistry.Invoke("random_cauchy", null, GetSeed(seedSource), median, sigma);
 }
예제 #12
0
 /// <summary>
 /// Randoms the exponential.
 /// </summary>
 /// <param name="result">The result.</param>
 /// <param name="seedSource">The seed source.</param>
 /// <param name="lambda">The lambda.</param>
 public static void RandomExponential(SeedSource seedSource, float lambda)
 {
     OpRegistry.Invoke("random_exponential", null, GetSeed(seedSource), lambda);
 }
예제 #13
0
 /// <summary>
 /// Randoms the normal.
 /// </summary>
 /// <param name="result">The result.</param>
 /// <param name="seedSource">The seed source.</param>
 /// <param name="mean">The mean.</param>
 /// <param name="stdv">The STDV.</param>
 public static void RandomNormal(SeedSource seedSource, float mean, float stdv)
 {
     OpRegistry.Invoke("random_normal", null, GetSeed(seedSource), mean, stdv);
 }
예제 #14
0
 /// <summary>
 /// Randoms the uniform.
 /// </summary>
 /// <param name="result">The result.</param>
 /// <param name="seedSource">The seed source.</param>
 /// <param name="min">The minimum.</param>
 /// <param name="max">The maximum.</param>
 public static void RandomUniform(SeedSource seedSource, float min, float max)
 {
     OpRegistry.Invoke("random_uniform", null, GetSeed(seedSource), min, max);
 }