"

DistributionExtensions Class

Summary

Contains extension methods for the IDistribution<TResult> interface.
Namespace
RandN.Extensions
Base Types
  • object

Syntax

public static class DistributionExtensions

Methods

NameValueSummary
Select<TSource, TResult>(IDistribution<TSource>, Func<TSource, TResult>)IDistribution<TResult>
Transforms a distribution by mapping its values using the selector provided. This method implements the "map" operator from functional programming principles.
static
SelectMany<TSource, TIntermediate, TResult>(IDistribution<TSource>, Func<TSource, IDistribution<TIntermediate>>, Func<TSource, TIntermediate, TResult>)IDistribution<TResult>
Transforms a distribution by mapping values using the selector provided to produce a new distribution, which is then sampled from.
static
SelectMany<TSource, TResult>(IDistribution<TSource>, Func<TSource, IDistribution<TResult>>)IDistribution<TResult>
Transforms a distribution by mapping values using the selector provided to produce a new distribution, which is then sampled from. This method implements the "bind" operator from functional programming principles.
static