Descriptive statistics such as mean, geometric mean, maximum, minimum, sample standard deviation and standard error, median, mode, coefficient of variation, and linear regression. Written for various data type arrays
MIT License
9
stars
3
forks
source link
cannot compile sample code Array.ino without getting many errors. #40
C:\projects\pico\Arduino\Array_stats\Array_stats.ino: In function 'void loop()': C:\projects\pico\Arduino\Array_stats\Array_stats.ino:22:75: error: no matching function for call to 'Array_Stats::Array_Stats(uint8_t [6], unsigned int)'
22 | Array_Stats Data_Array(Data, sizeof(Data) / sizeof(Data[0]));
| ^
In file included from C:\projects\pico\Arduino\Array_stats\Array_stats.ino:2:
c:\Users\Jim\Documents\Arduino\libraries\Statistical\src/Statistical.h:36:17: note: candidate: 'Array_Stats::Array_Stats(Data_Type, size_t) [with Data_Type = float; size_t = unsigned int]'
36 | Array_Stats(Data_Type _Data, size_t _Data_Count) : Data(_Data), Data_Count(_Data_Count) {
| ^::Array_Stats(const Array_Stats&)'
10 | template class Array_Stats {
| ^::Array_Stats(Array_Stats&&)'
c:\Users\Jim\Documents\Arduino\libraries\Statistical\src/Statistical.h:10:38: note: candidate expects 1 argument, 2 provided
C:\projects\pico\Arduino\Array_stats\Array_stats.ino:31:97: error: '_ArithmeticAverage' was not declared in this scope
31 | Serial.print(F("Array Arithmetic Average : ")); Serial.println(Data_Array.Average(_ArithmeticAverage));
| ^' has no member named 'Q1'
35 | Serial.print(F("Array Q1 : ")); Serial.println(Data_Array.Q1());
| ^~
C:\projects\pico\Arduino\Array_stats\Array_stats.ino:36:89: error: 'class Array_Stats' has no member named 'Median'
36 | Serial.print(F("Array Q2 (Median) : ")); Serial.println(Data_Array.Median());
| ^' has no member named 'Q3'
37 | Serial.print(F("Array Q3 : ")); Serial.println(Data_Array.Q3());
| ^~
C:\projects\pico\Arduino\Array_stats\Array_stats.ino:46:21: error: expected '}' at end of input
46 | delay(5000);
| ^
C:\projects\pico\Arduino\Array_stats\Array_stats.ino:14:13: note: to match this '{'
14 | void loop() {
| ^
~~c:\Users\Jim\Documents\Arduino\libraries\Statistical\src/Statistical.h:36:41: note: no known conversion for argument 1 from 'uint8_t [6]' {aka 'unsigned char [6]'} to 'float' 36 | Array_Stats(Data_Type _Data, size_t _Data_Count) : Data(_Data), Data_Count(_Data_Count) { |~~^~~ c:\Users\Jim\Documents\Arduino\libraries\Statistical\src/Statistical.h:10:38: note: candidate: 'constexpr Array_Stats~~c:\Users\Jim\Documents\Arduino\libraries\Statistical\src/Statistical.h:10:38: note: candidate expects 1 argument, 2 provided c:\Users\Jim\Documents\Arduino\libraries\Statistical\src/Statistical.h:10:38: note: candidate: 'constexpr Array_Stats~~~~~~~ C:\projects\pico\Arduino\Array_stats\Array_stats.ino:32:97: error: '_GeometricAverage' was not declared in this scope 32 | Serial.print(F("Array Geometric Average : ")); Serial.println(Data_Array.Average(_GeometricAverage)); | ^~~~~~~ C:\projects\pico\Arduino\Array_stats\Array_stats.ino:33:97: error: '_RMSAverage' was not declared in this scope 33 | Serial.print(F("Array RMS Average : ")); Serial.println(Data_Array.Average(_RMSAverage)); | ^~~~~ C:\projects\pico\Arduino\Array_stats\Array_stats.ino:34:97: error: '_Ext_RMSAverage' was not declared in this scope 34 | Serial.print(F("Array Extended RMS Average : ")); Serial.println(Data_Array.Average(_Ext_RMSAverage)); | ^~~~~ C:\projects\pico\Arduino\Array_stats\Array_stats.ino:35:89: error: 'class Array_Stats~C:\projects\pico\Arduino\Array_stats\Array_stats.ino:37:89: error: 'class Array_Statsexit status 1
Compilation error: no matching function for call to 'Array_Stats::Array_Stats(uint8_t [6], unsigned int)'