Beispiel #1
0
 public static void RandomBernoulli(Tensor result, SeedSource seedSource, float p)
 {
     OpRegistry.Invoke("random_bernoulli", result, GetSeed(seedSource), p);
 }
Beispiel #2
0
 public static void RandomLogNormal(Tensor result, SeedSource seedSource, float mean, float stdv)
 {
     OpRegistry.Invoke("random_lognormal", result, GetSeed(seedSource), mean, stdv);
 }
Beispiel #3
0
 public static void RandomGeometric(Tensor result, SeedSource seedSource, float p)
 {
     OpRegistry.Invoke("random_geometric", result, GetSeed(seedSource), p);
 }
Beispiel #4
0
 public static void RandomExponential(Tensor result, SeedSource seedSource, float lambda)
 {
     OpRegistry.Invoke("random_exponential", result, GetSeed(seedSource), lambda);
 }
Beispiel #5
0
 public static void RandomCauchy(Tensor result, SeedSource seedSource, float median, float sigma)
 {
     OpRegistry.Invoke("random_cauchy", result, GetSeed(seedSource), median, sigma);
 }
Beispiel #6
0
 private static int?GetSeed(SeedSource src)
 {
     return(src == null ? (int?)null : src.NextSeed());
 }
Beispiel #7
0
 public static void RandomUniform(Tensor result, SeedSource seedSource, float min, float max)
 {
     OpRegistry.Invoke("random_uniform", result, GetSeed(seedSource), min, max);
 }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #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);
 }