captest.CapTest.captest_results

CapTest.captest_results(check_pvalues=False, pval=0.05, print_res=True)

Compute the capacity test ratio for self.meas vs self.sim.

Predicts both regressions at the single test reporting conditions self.rc (set via rep_cond() or the rc setter); self.rc_source is reported for provenance. Raises ValueError if self.rc is None. Uses self.ac_nameplate for the tested-capacity printout and self.test_tolerance (via self.determine_pass_or_fail) for the pass/fail result.

Parameters:
  • check_pvalues (bool, default False) – When True, coefficients with a p-value above pval are zeroed before prediction.

  • pval (float, default 0.05) – P-value cutoff used when check_pvalues is True.

  • print_res (bool, default True) – When True, prints the formatted results.

Returns:

Capacity test ratio actual / expected.

Return type:

float