Skip to content

Commit fe49f80

Browse files
committedJan 19, 2025
Merge branch 'release/2.2.2'
Release v2.2.2
2 parents 4582376 + d74663d commit fe49f80

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+7444
-634
lines changed
 

‎CHANGELOG.md

+34
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,40 @@ From v2.0.0 all notable changes to this project will be documented in this file.
88
99
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1010

11+
## v2.2.2 of 2025/01/19
12+
13+
* New snippets were added to the _Arrays_ and _Mathematics_ categories:
14+
* _Arrays_ category:
15+
* `Reverse<T>` method of `TArrayUtils` & `ReverseByteArray` function (issue [#37](https://github.com/delphidabbler/code-snippets/issues/37)).
16+
* `Max<T>`, `Min<T>` & `MinMax<T>` methods of `TArrayUtils` (issue [#8](https://github.com/delphidabbler/code-snippets/issues/8)).
17+
* _Mathematics_ category:
18+
* 3 overloaded versions of each of the `ArithmeticMean` & `WeightedArithmeticMean` functions (issue [#30](https://github.com/delphidabbler/code-snippets/issues/30)).
19+
* `DigitSumBase`, `DigitCountBase` & `DigitsOf` function (issue [#17](https://github.com/delphidabbler/code-snippets/issues/17)).
20+
* `DigitPowerSum` function (issue [#39](https://github.com/delphidabbler/code-snippets/issues/39)).
21+
* `IsPalindromic` function (issue [#19](https://github.com/delphidabbler/code-snippets/issues/19)).
22+
* `IsNarcissistic` function (issue [#18](https://github.com/delphidabbler/code-snippets/issues/18)).
23+
* `LSE` & `Softmax` functions (issue [34](https://github.com/delphidabbler/code-snippets/issues/34)).
24+
* 3 overloaded versions of a `Median` function (issue [#41](https://github.com/delphidabbler/code-snippets/issues/41)).
25+
* 2 overloaded versions of each of the `MinMaxOfArray`, `RescaleRange`, `NormaliseByWeight` & `RangeOf` functions (issue [#44](https://github.com/delphidabbler/code-snippets/issues/44)).
26+
* 3 overloaded versions of each of the `GeometricMean` and `WeightedGeometricMean` functions (issue [#31](https://github.com/delphidabbler/code-snippets/issues/31)).
27+
* 3 overloaded versions of each of the `SumOfReciprocals` and `HarmonicMean` functions (issue [#35](https://github.com/delphidabbler/code-snippets/issues/35)).
28+
* 3 overloaded versions of a `WeightedHarmonicMean` function (issue [#47](https://github.com/delphidabbler/code-snippets/issues/47)).
29+
* `LogarithmicMean` function (issue [#32](https://github.com/delphidabbler/code-snippets/issues/32)).
30+
* 3 overloaded versions of the `PowerMean` and `WeightedPowerMean` functions (issue [#33](https://github.com/delphidabbler/code-snippets/issues/33)).
31+
* `Mode`, `ModeAlt`, `ModeCount`, `HasMode` & `CountOccurences` functions (issue [#42](https://github.com/delphidabbler/code-snippets/issues/42)).
32+
* 2 overloaded versions of a `RMS` function (issue [#49](https://github.com/delphidabbler/code-snippets/issues/49)).
33+
* 2 overloaded versions of a `TSS` (total sum of squares) function (issue [#51](https://github.com/delphidabbler/code-snippets/issues/51)).
34+
* Updates to snippets in the _Mathematics_ category:
35+
* Overflow checking was added to the `PowNZN`.
36+
* Fixed bug in all overloads of the `SumOfLogs` routine that was causing access violations whenever an exception was to be raised (issue [#46](https://github.com/delphidabbler/code-snippets/issues/46)).
37+
* Changes to tests:
38+
* Added unit tests for all the routines and methods that were added to the _Arrays_ and _Mathematics_ categories in this release.
39+
* Added unit test for the pre-existing `ByteArraysEqual` function in the _Arrays_ category.
40+
* Modified unit test for `PowNZN` to check for new `EOverflow` exception raised when an overflow condition is detected.
41+
* Removed conditional compilation directives from the array unit test unit.
42+
* Updated `README.md` to note that there are now over 700 snippets in the collection.
43+
* Updated all copyright dates for 2025.
44+
1145
## v2.2.1 of 2024/12/02 (HOTFIX)
1246

1347
* Fixed invalid and corrupted values in some `AdvancedTest.URL` and `AdvancedTest.Level` keys in `data.ini`, `hex.ini` and `maths.ini`. Fixes issue [#29](https://github.com/delphidabbler/code-snippets/issues/29).

‎LICENSE.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# MIT License
22

3-
All `.dat` files in the `collection` directory and certain `.pas` files in the `tests` directory that were generated from the collection are copyright © 2005-2024, [Peter Johnson](https://gravatar.com/delphidabbler) and [Contributors](https://github.com/delphidabbler/code-snippets/tree/master/collection/CONTRIBUTORS).
3+
All `.dat` files in the `collection` directory and certain `.pas` files in the `tests` directory that were generated from the collection are copyright © 2005-2025, [Peter Johnson](https://gravatar.com/delphidabbler) and [Contributors](https://github.com/delphidabbler/code-snippets/tree/master/collection/CONTRIBUTORS).
44

5-
All other files in this project are copyright © 2020-2024, [Peter Johnson](https://gravatar.com/delphidabbler).
5+
All other files in this project are copyright © 2020-2025, [Peter Johnson](https://gravatar.com/delphidabbler).
66

77
----
88

0 commit comments

Comments
 (0)
Please sign in to comment.