public static Type SampleInto <DistributionType, DomainType>(DistributionType sourceDist, HasPoint <DomainType> targetDist) where DistributionType : Sampleable <DomainType> { Console.WriteLine("Selected T = " + typeof(DomainType)); return(typeof(DomainType)); }
public static Action DelayedSampleInto <T>(Sampleable <T> sourceDist, HasPoint <T> targetDist) { return(delegate() { targetDist.Point = sourceDist.Sample(); }); }