pub fn initial_adoption_percent(
tried_at_least_once: f64,
target_audience: f64,
) -> Option<f64>Expand description
Initial adoption percentage: target audience who tried a feature at least once.
Measure against the feature’s specific, precisely defined target audience, not your entire user base — a feature for enterprise administrators measured against a mostly individual-user base will always look like it has terrible adoption, regardless of how well it actually serves the people it was built for.
§Arguments
tried_at_least_once— count of the target audience who tried the feature at least once.target_audience— size of the specific population the feature was built for.
§Returns
Some(percentage) (e.g. 60.0 for 60%), or None when
target_audience is zero (no audience — adoption undefined).
§Examples
use software_engineering::feature_adoption::initial_adoption_percent;
// 600 of 1,000 in the target audience tried the feature: 60% initial trial.
assert_eq!(initial_adoption_percent(600.0, 1_000.0), Some(60.0));
assert_eq!(initial_adoption_percent(1.0, 0.0), None);