q_calc_util 0.1.0 copy "q_calc_util: ^0.1.0" to clipboard
q_calc_util: ^0.1.0 copied to clipboard

outdated

Dixon's Q Test calculator package for Dart

Q Calc Util #

Build Status

Q Calc Util is a Dixon's Q Test library for Dart developers. It makes easier to developers to perform outliers check in a range of values.

Usage #

Add the following import to your Dart code:

import 'package:q_calc_util/q_calc_util.dart';

Then you can get a DixonResults object containing Q Test results just calling calculateQTest function like this:

// List of values to check outliers
List<double> values = [0.764, 0.864, 0.936, 0.047, 1.028, 1.043];

try {
  // Calculates Q Test using 95% of confidence
  DixonResults result = calculateQTest(values, Confidence.percent95);
  
  print("""
        Confidence: 95%
         Lower end: ${result.lowerEnd.toStringAsFixed(3)}
         Upper end: ${result.upperEnd.toStringAsFixed(3)}
                 Q: ${result.q}
                 N: ${result.n}
            Values: ${result.values.toString()}
    Removed values: ${result.removedValues.toString()}
    """);
} on DixonException catch (error) {
  // Catches DixonException in case of 'n' lower than 3 values
  print(error.toString());
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

0
likes
0
pub points
0%
popularity

Publisher

verified publisherchemis.tech

Dixon's Q Test calculator package for Dart

Homepage

License

unknown (LICENSE)

More

Packages that depend on q_calc_util