コード例 #1
0
ファイル: MCMC.cs プロジェクト: nobnak/nobnak
        public MCMC(CPUTexture probTex, float stddev, float aspect, float height, float epsilon, Rect area)
        {
            this.ProbTex = probTex;
            this.Aspect = aspect;
            this.Height = height;
            this.Epsilon = epsilon;
            this.StdDev = stddev;

            area.xMin = Mathf.Clamp01(area.xMin);
            area.xMax = Mathf.Clamp01(area.xMax);
            area.yMin = Mathf.Clamp01(area.yMin);
            area.yMax = Mathf.Clamp01(area.yMax);
            this.EffectiveArea = area;
        }
コード例 #2
0
ファイル: MCMC.cs プロジェクト: nobnak/nobnak
 public MCMC(CPUTexture probTex, float stddev, float aspect, float height, float epsilon)
     : this(probTex, stddev, aspect, height, epsilon, new Rect(0f, 0f, 1f, 1f))
 {
 }
コード例 #3
0
ファイル: MCMC.cs プロジェクト: nobnak/nobnak
 public MCMC(CPUTexture probTex, float stddev, float aspect)
     : this(probTex, stddev, aspect, 1f, 1e-6f, new Rect(0f, 0f, 1f, 1f))
 {
 }