示例#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))
 {
 }