search_optimal_kernel_bandwidth¶
- pysm3.search_optimal_kernel_bandwidth(x, bandwidths: Iterable[float] | None = None) float[source] [edit on github]¶
Select KDE bandwidth by leave-one-out log-likelihood grid search.
- Parameters:
- xarray_like
1D samples (GHz).
- bandwidthsiterable of float, optional
Candidate bandwidths to evaluate. If None, a reasonable log-spaced grid is built from the sample standard deviation.
- Returns:
- float
Best bandwidth (GHz).