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