mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
0.3.5 Histogram
This commit is contained in:
parent
ed53c4ecd8
commit
dbc83b1599
@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
|||||||
and this project adheres to [Semantic Versioning](http://semver.org/).
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||||
|
|
||||||
|
|
||||||
|
## [0.3.5] - 2023-11-04
|
||||||
|
- update readme.md
|
||||||
|
- minor fix in changelog.md
|
||||||
|
- update keywords.txt
|
||||||
|
|
||||||
|
|
||||||
## [0.3.4] - 2023-06-30
|
## [0.3.4] - 2023-06-30
|
||||||
- change return type **uint8_t clear()**, return status bucket
|
- change return type **uint8_t clear()**, return status bucket
|
||||||
- change return type **uint8_t setBucket(value)**, return status bucket
|
- change return type **uint8_t setBucket(value)**, return status bucket
|
||||||
@ -17,7 +23,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
- update / clean up readme.md
|
- update / clean up readme.md
|
||||||
- minor improvements derived classes - still experimental
|
- minor improvements derived classes - still experimental
|
||||||
|
|
||||||
|
|
||||||
## [0.3.3] - 2023-02-21
|
## [0.3.3] - 2023-02-21
|
||||||
- optimize loops
|
- optimize loops
|
||||||
- update readme.md
|
- update readme.md
|
||||||
@ -29,8 +34,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
- add changelog.md
|
- add changelog.md
|
||||||
- add rp2040 to build-CI
|
- add rp2040 to build-CI
|
||||||
- update readme.md
|
- update readme.md
|
||||||
|
|
||||||
## [0.3.2] - 2022-07-27
|
|
||||||
- clean-up code
|
- clean-up code
|
||||||
- update documentation
|
- update documentation
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// FILE: Histogram.cpp
|
// FILE: Histogram.cpp
|
||||||
// AUTHOR: Rob Tillaart
|
// AUTHOR: Rob Tillaart
|
||||||
// VERSION: 0.3.4
|
// VERSION: 0.3.5
|
||||||
// PURPOSE: Histogram library for Arduino
|
// PURPOSE: Histogram library for Arduino
|
||||||
// DATE: 2012-11-10
|
// DATE: 2012-11-10
|
||||||
|
|
||||||
@ -328,7 +328,6 @@ uint16_t Histogram::countBelow(const int32_t level)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// experimental use with care
|
// experimental use with care
|
||||||
int32_t Histogram::getMaxBucket()
|
int32_t Histogram::getMaxBucket()
|
||||||
{
|
{
|
||||||
|
@ -2,14 +2,14 @@
|
|||||||
//
|
//
|
||||||
// FILE: Histogram.h
|
// FILE: Histogram.h
|
||||||
// AUTHOR: Rob Tillaart
|
// AUTHOR: Rob Tillaart
|
||||||
// VERSION: 0.3.4
|
// VERSION: 0.3.5
|
||||||
// PURPOSE: Histogram library for Arduino
|
// PURPOSE: Histogram library for Arduino
|
||||||
// DATE: 2012-11-10
|
// DATE: 2012-11-10
|
||||||
|
|
||||||
|
|
||||||
#include "Arduino.h"
|
#include "Arduino.h"
|
||||||
|
|
||||||
#define HISTOGRAM_LIB_VERSION (F("0.3.4"))
|
#define HISTOGRAM_LIB_VERSION (F("0.3.5"))
|
||||||
|
|
||||||
// return STATUS add(), sub(), clear(), setBucket();
|
// return STATUS add(), sub(), clear(), setBucket();
|
||||||
#define HISTO_OK 0x00 // idem
|
#define HISTO_OK 0x00 // idem
|
||||||
|
@ -12,6 +12,7 @@ clear KEYWORD2
|
|||||||
setBucket KEYWORD2
|
setBucket KEYWORD2
|
||||||
add KEYWORD2
|
add KEYWORD2
|
||||||
sub KEYWORD2
|
sub KEYWORD2
|
||||||
|
status KEYWORD2
|
||||||
|
|
||||||
size KEYWORD2
|
size KEYWORD2
|
||||||
count KEYWORD2
|
count KEYWORD2
|
||||||
@ -21,6 +22,7 @@ frequency KEYWORD2
|
|||||||
PMF KEYWORD2
|
PMF KEYWORD2
|
||||||
CDF KEYWORD2
|
CDF KEYWORD2
|
||||||
VAL KEYWORD2
|
VAL KEYWORD2
|
||||||
|
sum KEYWORD2
|
||||||
|
|
||||||
find KEYWORD2
|
find KEYWORD2
|
||||||
findMin KEYWORD2
|
findMin KEYWORD2
|
||||||
@ -30,6 +32,9 @@ countLevel KEYWORD2
|
|||||||
countAbove KEYWORD2
|
countAbove KEYWORD2
|
||||||
countBelow KEYWORD2
|
countBelow KEYWORD2
|
||||||
|
|
||||||
|
getMaxBucket KEYWORD2
|
||||||
|
setMaxBucket KEYWORD2
|
||||||
|
|
||||||
|
|
||||||
# Constants (LITERAL1)
|
# Constants (LITERAL1)
|
||||||
HISTOGRAM_LIB_VERSION LITERAL1
|
HISTOGRAM_LIB_VERSION LITERAL1
|
||||||
|
@ -15,9 +15,9 @@
|
|||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/RobTillaart/Histogram.git"
|
"url": "https://github.com/RobTillaart/Histogram.git"
|
||||||
},
|
},
|
||||||
"version": "0.3.4",
|
"version": "0.3.5",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"frameworks": "arduino",
|
"frameworks": "*",
|
||||||
"platforms": "*",
|
"platforms": "*",
|
||||||
"headers": "histogram.h"
|
"headers": "histogram.h"
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
name=Histogram
|
name=Histogram
|
||||||
version=0.3.4
|
version=0.3.5
|
||||||
author=Rob Tillaart <rob.tillaart@gmail.com>
|
author=Rob Tillaart <rob.tillaart@gmail.com>
|
||||||
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
|
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
|
||||||
sentence=Arduino library for creating histograms math.
|
sentence=Arduino library for creating histograms math.
|
||||||
paragraph=
|
paragraph=
|
||||||
category=Data Processing
|
category=Data Processing
|
||||||
url=https://github.com/RobTillaart/Histogram
|
url=https://github.com/RobTillaart/Histogram
|
||||||
architectures=*
|
architectures=*
|
||||||
|
@ -2,8 +2,11 @@
|
|||||||
[![Arduino CI](https://github.com/RobTillaart/Histogram/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci)
|
[![Arduino CI](https://github.com/RobTillaart/Histogram/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci)
|
||||||
[![Arduino-lint](https://github.com/RobTillaart/Histogram/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/Histogram/actions/workflows/arduino-lint.yml)
|
[![Arduino-lint](https://github.com/RobTillaart/Histogram/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/Histogram/actions/workflows/arduino-lint.yml)
|
||||||
[![JSON check](https://github.com/RobTillaart/Histogram/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/Histogram/actions/workflows/jsoncheck.yml)
|
[![JSON check](https://github.com/RobTillaart/Histogram/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/Histogram/actions/workflows/jsoncheck.yml)
|
||||||
|
[![GitHub issues](https://img.shields.io/github/issues/RobTillaart/Histogram.svg)](https://github.com/RobTillaart/Histogram/issues)
|
||||||
|
|
||||||
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/Histogram/blob/master/LICENSE)
|
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/Histogram/blob/master/LICENSE)
|
||||||
[![GitHub release](https://img.shields.io/github/release/RobTillaart/Histogram.svg?maxAge=3600)](https://github.com/RobTillaart/Histogram/releases)
|
[![GitHub release](https://img.shields.io/github/release/RobTillaart/Histogram.svg?maxAge=3600)](https://github.com/RobTillaart/Histogram/releases)
|
||||||
|
[![PlatformIO Registry](https://badges.registry.platformio.org/packages/robtillaart/library/Histogram.svg)](https://registry.platformio.org/libraries/robtillaart/Histogram)
|
||||||
|
|
||||||
|
|
||||||
# Histogram
|
# Histogram
|
||||||
@ -220,3 +223,13 @@ Note **PDF()** is a continuous function and therefore not applicable in a discre
|
|||||||
- 2D histograms ? e.g. positions on a grid.
|
- 2D histograms ? e.g. positions on a grid.
|
||||||
- see SparseMatrix
|
- see SparseMatrix
|
||||||
|
|
||||||
|
|
||||||
|
## Support
|
||||||
|
|
||||||
|
If you appreciate my libraries, you can support the development and maintenance.
|
||||||
|
Improve the quality of the libraries by providing issues and Pull Requests, or
|
||||||
|
donate through PayPal or GitHub sponsors.
|
||||||
|
|
||||||
|
Thank you,
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user