flutter_heyteacher_math 2.0.5+134 copy "flutter_heyteacher_math: ^2.0.5+134" to clipboard
flutter_heyteacher_math: ^2.0.5+134 copied to clipboard

The flutter heyteacher package for math utilities.

flutter_heyteacher_math #

A Flutter package containing mathematical utilities and algorithms, designed for the Flutter HeyTeacher ecosystem.

Features #

  • Moving Average: Utilities to calculate Simple, Exponential, and Weighted moving averages for data sets.

Getting started #

Add the package to your pubspec.yaml:

dependencies:
  flutter_heyteacher_math:

Usage #

Moving Average #

The package provides the MovingAverage class to calculate different types of moving averages.

Simple Moving Average

import 'package:flutter_heyteacher_math/flutter_heyteacher_math.dart';

final data = [10.0, 12.0, 11.0, 15.0, 14.0, 16.0];
final period = 3;

final result = MovingAverage.simple(data, period);
// result: [10.0, 11.0, 11.0, 12.666..., 13.333..., 15.0]

Exponential Moving Average

import 'package:flutter_heyteacher_math/flutter_heyteacher_math.dart';

final result = MovingAverage.exponential(data, period);
// result: [10.0, 11.0, 11.0, 13.0, 13.5, 14.75]

Weighted Moving Average

import 'package:flutter_heyteacher_math/flutter_heyteacher_math.dart';

final result = MovingAverage.weighted(data, period);
// result: [10.0, 11.333..., 11.166..., 13.166..., 13.833..., 15.166...]
0
likes
150
points
4
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

The flutter heyteacher package for math utilities.

Repository
View/report issues

Topics

#flutter #moving-average #moving-average-simple #moving-average-exponential #moving-average-weighted

Funding

Consider supporting this project:

liberapay.com

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on flutter_heyteacher_math