pub fn h1(
r: usize,
theta: f64,
info: f64,
a: f64,
b: f64,
) -> Result<DensityGrid, IntegrationError>Expand description
Initialize the density grid for the first group sequential analysis.
§Errors
Returns IntegrationError::NonPositiveInformation when info is not
strictly positive or propagates any IntegrationError from gridpts.
§Examples
use gsdesign::{h1, IntegrationError};
let grid = h1(5, 0.5, 2.0, -2.0, 2.0)?;
assert_eq!(grid.points.len(), grid.values.len());
assert!(grid.values.iter().all(|v| *v >= 0.0));