Ejemplo n.º 1
0
        public Object Clone()
        {
            ExposureMetricEstimates clone = new ExposureMetricEstimates(Oel);

            clone.LogNormDist = LogNormDist;
            clone.TargetPerc  = TargetPerc;
            clone.MuChain     = new double[MuChain.Length];
            MuChain.CopyTo(clone.MuChain, 0);
            clone.SigmaChain = new double[SigmaChain.Length];
            SigmaChain.CopyTo(clone.SigmaChain, 0);
            if (SigmaWithinChain != null)
            {
                clone.SigmaWithinChain = new double[SigmaWithinChain.Length];
                SigmaWithinChain.CopyTo(clone.SigmaWithinChain, 0);
            }

            clone.BWModel = BWModel;
            if (WorkerIds != null)
            {
                clone.WorkerIds = new string[WorkerIds.Length];
                WorkerIds.CopyTo(clone.WorkerIds, 0);
            }
            return(clone);
        }
Ejemplo n.º 2
0
 public TableEntryData GeomMean()
 {
     double[] tmpChain = MuChain.Select(mu => LogNormDist ? Math.Exp(mu) : mu).ToArray <double>();
     return(new PointEstimateWInterval(tmpChain));
 }