← Về thư mục
skills/analytical-method-validation/scripts/_common.py
- InputError · class · L39-L40 — class InputError(Exception)
- _betacf · function · L48-L80 — def _betacf(a: float, b: float, x: float, itmax: int = 400, eps: float = 3e-16) -> float
- betainc · function · L83-L99 — def betainc(a: float, b: float, x: float) -> float
- gammainc_lower · function · L102-L138 — def gammainc_lower(a: float, x: float) -> float
- _bisect_ppf · function · L141-L151 — def _bisect_ppf(cdf, target: float, lo: float, hi: float, tol: float = 1e-12) -> float
- t_cdf · function · L154-L160 — def t_cdf(t: float, df: float) -> float
- t_ppf · function · L163-L167 — def t_ppf(p: float, df: float) -> float
- chi2_cdf · function · L170-L174 — def chi2_cdf(x: float, df: float) -> float
- chi2_ppf · function · L177-L181 — def chi2_ppf(p: float, df: float) -> float
- f_cdf · function · L184-L188 — def f_cdf(x: float, df1: float, df2: float) -> float
- f_sf · function · L191-L200 — def f_sf(x: float, df1: float, df2: float) -> float
- z_ppf · function · L203-L207 — def z_ppf(p: float) -> float
- mean · function · L215-L218 — def mean(values: Sequence[float]) -> float
- sample_sd · function · L221-L226 — def sample_sd(values: Sequence[float]) -> float
- rsd_percent · function · L229-L234 — def rsd_percent(values: Sequence[float]) -> float
- median · function · L237-L243 — def median(values: Sequence[float]) -> float
- sd_confidence_interval · function · L246-L253 — def sd_confidence_interval(sd: float, df: float, level: float = 0.90) -> tuple[float, float]
- LinearFit · class · L262-L287 — class LinearFit
- predict · method · L278-L279 — def predict(self, x: float) -> float
- slope_ci · method · L281-L283 — def slope_ci(self, level: float = 0.95) -> tuple[float, float]
- intercept_ci · method · L285-L287 — def intercept_ci(self, level: float = 0.95) -> tuple[float, float]
- fit_linear · function · L290-L342 — def fit_linear( xs: Sequence[float], ys: Sequence[float], weights: Sequence[float] | None = None ) -> LinearFit
- runs_test · function · L345-L375 — def runs_test(residuals: Sequence[float]) -> dict[str, Any]
- lack_of_fit · function · L378-L420 — def lack_of_fit(xs: Sequence[float], ys: Sequence[float], fit: LinearFit) -> dict[str, Any]
- heteroscedasticity · function · L423-L448 — def heteroscedasticity(xs: Sequence[float], residuals: Sequence[float]) -> dict[str, Any]
- PrecisionComponents · class · L457-L492 — class PrecisionComponents
- rsd · method · L473-L476 — def rsd(self, sd: float) -> float
- satterthwaite_df · method · L478-L492 — def satterthwaite_df(self) -> float
- one_way_components · function · L495-L548 — def one_way_components(groups: dict[str, Sequence[float]]) -> PrecisionComponents
- deming · function · L556-L631 — def deming( xs: Sequence[float], ys: Sequence[float], lambda_ratio: float = 1.0 ) -> dict[str, Any]
- _fit · function · L583-L594 — def _fit(xv: Sequence[float], yv: Sequence[float]) -> tuple[float, float]
- passing_bablok · function · L634-L692 — def passing_bablok(xs: Sequence[float], ys: Sequence[float]) -> dict[str, Any]
- _shifted_median · function · L663-L669 — def _shifted_median(offset: int) -> float
- bland_altman · function · L695-L743 — def bland_altman( xs: Sequence[float], ys: Sequence[float], relative: bool = False ) -> dict[str, Any]
- tost_paired · function · L746-L784 — def tost_paired( diffs: Sequence[float], margin: float, alpha: float = 0.05 ) -> dict[str, Any]
- read_input · function · L792-L809 — def read_input(path: str | None) -> str
- parse_rows · function · L812-L849 — def parse_rows(text: str, path_hint: str | None = None) -> list[dict[str, str]]
- require_columns · function · L852-L858 — def require_columns(rows: list[dict[str, str]], columns: Iterable[str]) -> None
- to_float · function · L861-L867 — def to_float(value: str, column: str, row_index: int) -> float
- fmt · function · L870-L884 — def fmt(value: Any, digits: int = 4) -> str
- emit_table · function · L887-L901 — def emit_table(rows: list[dict[str, Any]], stream=None) -> None
- emit · function · L904-L918 — def emit(rows: list[dict[str, Any]], fmt_name: str, stream=None) -> None
- _json_default · function · L921-L926 — def _json_default(obj: Any) -> Any
- note · function · L929-L931 — def note(message: str) -> None
- finding · function · L934-L935 — def finding(message: str) -> None
- add_common_args · function · L938-L944 — def add_common_args(parser: argparse.ArgumentParser) -> None
- run_cli · function · L947-L955 — def run_cli(main_func) -> None