public static double effectiveSampleNumberConjugateCalcn(Complex[] ww) {
		Complex[] weight = Conv.copy(ww);
		if (Stat.weightingOptionS) {
			ArrayMaths am = new ArrayMaths(ww);
			am = am.pow(2);
			am = am.invert();
			weight = am.array_as_Complex();
		}
		int n = weight.length;

		double nEff = Double.NaN;
		if (Stat.nEffOptionS) {
			Complex sumw2 = Complex.zero();
			Complex sum2w = Complex.zero();
			for (int i = 0; i < n; i++) {
				sum2w = sum2w.plus(weight[i]);
				sumw2 = sumw2.plus(weight[i].times(weight[i].conjugate()));
			}
			sum2w = sum2w.times(sum2w.conjugate());
			nEff = sum2w.getReal() / sumw2.getReal();
		}
		return nEff;
	}