Skip to content

extra::stats::write_boxplot takes positive sample values only #8451

Closed
@dmanescu

Description

@dmanescu

The program

extern mod extra;

use extra::stats;

fn main() {
    let s = stats::Summary::new([0.0, 2.0, 3.0]);
    stats::write_boxplot(std::io::stdout(), &s, 100) 
} 

outputs

NaN |[#]                                                                                          | 3

because the choice of upper and lower limits of the boxplot involves log10().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions