q_calc_util

Last updated:

0 purchases

q_calc_util Image
q_calc_util Images
Add to Cart

Description:

q calc util

Q Calc Util #



Q Calc Util is a Dixon's Q Test library for Dart developers. It makes
easier for developers to perform outliers check in a range between 3 and 30 values
Usage #
Add the following import to your Dart code:
import 'package:q_calc_util/q_calc_util.dart';
copied to clipboard
Then you can get a DixonResults object containing Q Test results just calling
calculateQTest function like this:
// List of values to check outliers
var values = [0.764, 0.864, 0.936, 0.047, 1.028, 1.043];

try {
// Calculates Q Test using 95% of confidence
var 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());
}
copied to clipboard
Features and bugs #
Please file feature requests and bugs at the issue tracker.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.