diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index ebd4e5e..94234e4 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -36,7 +36,7 @@ jobs: if: ${{ matrix.version == 'nightly' }} run: | echo "RUSTFLAGS=-Zinstrument-coverage" >> $GITHUB_ENV - echo "LLVM_PROFILE_FILE=mshrtsr-%p-%m.profraw" >> $GITHUB_ENV + echo "LLVM_PROFILE_FILE=tasshi-me-%p-%m.profraw" >> $GITHUB_ENV - name: Rustup version run: rustup --version diff --git a/CHANGELOG.md b/CHANGELOG.md index 784b61d..287dd0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,65 +1,65 @@ # Changelog -## [0.5.0](https://github.com/mshrtsr/fitting-rs/compare/0.4.4...0.5.0) (2022-12-29) +## [0.5.0](https://github.com/tasshi-me/fitting-rs/compare/0.4.4...0.5.0) (2022-12-29) ### ⚠ BREAKING CHANGES -* return an error if vec_y contains negative value ([#52](https://github.com/mshrtsr/fitting-rs/issues/52)) +* return an error if vec_y contains negative value ([#52](https://github.com/tasshi-me/fitting-rs/issues/52)) ### Bug Fixes -* return an error if vec_y contains negative value ([#52](https://github.com/mshrtsr/fitting-rs/issues/52)) ([93b4019](https://github.com/mshrtsr/fitting-rs/commit/93b40195a92af9df5f457bde817ed41a97ae8adf)) +* return an error if vec_y contains negative value ([#52](https://github.com/tasshi-me/fitting-rs/issues/52)) ([93b4019](https://github.com/tasshi-me/fitting-rs/commit/93b40195a92af9df5f457bde817ed41a97ae8adf)) -## [0.4.4](https://github.com/mshrtsr/fitting-rs/compare/0.4.3...0.4.4) (2022-12-29) +## [0.4.4](https://github.com/tasshi-me/fitting-rs/compare/0.4.3...0.4.4) (2022-12-29) ### Chores -* add limitations section of `Gaussian::fit` ([#53](https://github.com/mshrtsr/fitting-rs/issues/53)) ([b556725](https://github.com/mshrtsr/fitting-rs/commit/b556725171b539dcaf2adc61e5cd40b6f5346b0d)) -* replace deprecated method of `ndarray::Zip` ([700fcf5](https://github.com/mshrtsr/fitting-rs/commit/700fcf5570e910d8ee25cf9d272be28dc6afdd72)) +* add limitations section of `Gaussian::fit` ([#53](https://github.com/tasshi-me/fitting-rs/issues/53)) ([b556725](https://github.com/tasshi-me/fitting-rs/commit/b556725171b539dcaf2adc61e5cd40b6f5346b0d)) +* replace deprecated method of `ndarray::Zip` ([700fcf5](https://github.com/tasshi-me/fitting-rs/commit/700fcf5570e910d8ee25cf9d272be28dc6afdd72)) -## [0.4.3](https://github.com/mshrtsr/fitting-rs/compare/0.4.2...0.4.3) (2022-12-26) +## [0.4.3](https://github.com/tasshi-me/fitting-rs/compare/0.4.2...0.4.3) (2022-12-26) ### Bug Fixes -* **deps:** update rust crate serde to 1.0.148 ([#45](https://github.com/mshrtsr/fitting-rs/issues/45)) ([2f8a832](https://github.com/mshrtsr/fitting-rs/commit/2f8a8320d0f940984d65b6fe4da24433cba698eb)) -* **deps:** update rust crate serde to 1.0.149 ([#47](https://github.com/mshrtsr/fitting-rs/issues/47)) ([317a8a5](https://github.com/mshrtsr/fitting-rs/commit/317a8a588babf0959be692384c3219821cbe2433)) -* **deps:** update rust crate serde to 1.0.150 ([#48](https://github.com/mshrtsr/fitting-rs/issues/48)) ([ab34e27](https://github.com/mshrtsr/fitting-rs/commit/ab34e2758d619c9f6dd6c946f14474df8b780408)) -* **deps:** update rust crate serde to 1.0.151 ([#49](https://github.com/mshrtsr/fitting-rs/issues/49)) ([f721ee0](https://github.com/mshrtsr/fitting-rs/commit/f721ee0329342f69ccd5ef1d58cba13e584171e0)) -* **deps:** update rust crate serde to 1.0.152 ([#51](https://github.com/mshrtsr/fitting-rs/issues/51)) ([b52b737](https://github.com/mshrtsr/fitting-rs/commit/b52b73752adeb372654adeeed356a33633e381d9)) -* **deps:** update rust crate thiserror to 1.0.38 ([#50](https://github.com/mshrtsr/fitting-rs/issues/50)) ([406f4ba](https://github.com/mshrtsr/fitting-rs/commit/406f4ba0b74165daa0ed7430f47861c8f3f0e81f)) +* **deps:** update rust crate serde to 1.0.148 ([#45](https://github.com/tasshi-me/fitting-rs/issues/45)) ([2f8a832](https://github.com/tasshi-me/fitting-rs/commit/2f8a8320d0f940984d65b6fe4da24433cba698eb)) +* **deps:** update rust crate serde to 1.0.149 ([#47](https://github.com/tasshi-me/fitting-rs/issues/47)) ([317a8a5](https://github.com/tasshi-me/fitting-rs/commit/317a8a588babf0959be692384c3219821cbe2433)) +* **deps:** update rust crate serde to 1.0.150 ([#48](https://github.com/tasshi-me/fitting-rs/issues/48)) ([ab34e27](https://github.com/tasshi-me/fitting-rs/commit/ab34e2758d619c9f6dd6c946f14474df8b780408)) +* **deps:** update rust crate serde to 1.0.151 ([#49](https://github.com/tasshi-me/fitting-rs/issues/49)) ([f721ee0](https://github.com/tasshi-me/fitting-rs/commit/f721ee0329342f69ccd5ef1d58cba13e584171e0)) +* **deps:** update rust crate serde to 1.0.152 ([#51](https://github.com/tasshi-me/fitting-rs/issues/51)) ([b52b737](https://github.com/tasshi-me/fitting-rs/commit/b52b73752adeb372654adeeed356a33633e381d9)) +* **deps:** update rust crate thiserror to 1.0.38 ([#50](https://github.com/tasshi-me/fitting-rs/issues/50)) ([406f4ba](https://github.com/tasshi-me/fitting-rs/commit/406f4ba0b74165daa0ed7430f47861c8f3f0e81f)) -## [0.4.2](https://github.com/mshrtsr/fitting-rs/compare/0.4.1...0.4.2) (2022-10-21) +## [0.4.2](https://github.com/tasshi-me/fitting-rs/compare/0.4.1...0.4.2) (2022-10-21) ### Bug Fixes -* **deps:** update rust crate serde to 1.0.145 ([#40](https://github.com/mshrtsr/fitting-rs/issues/40)) ([28b4d3d](https://github.com/mshrtsr/fitting-rs/commit/28b4d3d6dedd5153a84bb73d28efa2bb6ec800b4)) -* **deps:** update rust crate serde to 1.0.146 ([#43](https://github.com/mshrtsr/fitting-rs/issues/43)) ([b104977](https://github.com/mshrtsr/fitting-rs/commit/b10497758766b9d9e4755dfb2d309dff3b9fa0fa)) -* **deps:** update rust crate serde to 1.0.147 ([#44](https://github.com/mshrtsr/fitting-rs/issues/44)) ([13189bb](https://github.com/mshrtsr/fitting-rs/commit/13189bbf1b8e1e2dd0bd119066757e185e9b2684)) -* **deps:** update rust crate thiserror to 1.0.35 ([#38](https://github.com/mshrtsr/fitting-rs/issues/38)) ([8f8e210](https://github.com/mshrtsr/fitting-rs/commit/8f8e210c087364a56c13c386ab65b861a84591f4)) -* **deps:** update rust crate thiserror to 1.0.36 ([#41](https://github.com/mshrtsr/fitting-rs/issues/41)) ([a8563dc](https://github.com/mshrtsr/fitting-rs/commit/a8563dce301cc778db4d8968b54612bb6255fb11)) -* **deps:** update rust crate thiserror to 1.0.37 ([#42](https://github.com/mshrtsr/fitting-rs/issues/42)) ([f14d758](https://github.com/mshrtsr/fitting-rs/commit/f14d758586b9a0b49f4e2d47a442bc3ee09ec5c9)) +* **deps:** update rust crate serde to 1.0.145 ([#40](https://github.com/tasshi-me/fitting-rs/issues/40)) ([28b4d3d](https://github.com/tasshi-me/fitting-rs/commit/28b4d3d6dedd5153a84bb73d28efa2bb6ec800b4)) +* **deps:** update rust crate serde to 1.0.146 ([#43](https://github.com/tasshi-me/fitting-rs/issues/43)) ([b104977](https://github.com/tasshi-me/fitting-rs/commit/b10497758766b9d9e4755dfb2d309dff3b9fa0fa)) +* **deps:** update rust crate serde to 1.0.147 ([#44](https://github.com/tasshi-me/fitting-rs/issues/44)) ([13189bb](https://github.com/tasshi-me/fitting-rs/commit/13189bbf1b8e1e2dd0bd119066757e185e9b2684)) +* **deps:** update rust crate thiserror to 1.0.35 ([#38](https://github.com/tasshi-me/fitting-rs/issues/38)) ([8f8e210](https://github.com/tasshi-me/fitting-rs/commit/8f8e210c087364a56c13c386ab65b861a84591f4)) +* **deps:** update rust crate thiserror to 1.0.36 ([#41](https://github.com/tasshi-me/fitting-rs/issues/41)) ([a8563dc](https://github.com/tasshi-me/fitting-rs/commit/a8563dce301cc778db4d8968b54612bb6255fb11)) +* **deps:** update rust crate thiserror to 1.0.37 ([#42](https://github.com/tasshi-me/fitting-rs/issues/42)) ([f14d758](https://github.com/tasshi-me/fitting-rs/commit/f14d758586b9a0b49f4e2d47a442bc3ee09ec5c9)) -## [0.4.1](https://github.com/mshrtsr/fitting-rs/compare/0.4.0...0.4.1) (2022-09-08) +## [0.4.1](https://github.com/tasshi-me/fitting-rs/compare/0.4.0...0.4.1) (2022-09-08) ### Bug Fixes -* **deps:** update rust crate ndarray to 0.15.6 ([#27](https://github.com/mshrtsr/fitting-rs/issues/27)) ([ef30236](https://github.com/mshrtsr/fitting-rs/commit/ef30236fa7a5513b14b5d3ecd49fdca8aae74497)) -* **deps:** update rust crate serde to 1.0.143 ([#31](https://github.com/mshrtsr/fitting-rs/issues/31)) ([4563832](https://github.com/mshrtsr/fitting-rs/commit/45638320e0ab7f6b1f5c0c2b5f021be988c4a5be)) -* **deps:** update rust crate serde to 1.0.144 ([#37](https://github.com/mshrtsr/fitting-rs/issues/37)) ([2655092](https://github.com/mshrtsr/fitting-rs/commit/26550921439f3e189f0ce43767f4444a05f1c6b3)) -* **deps:** update rust crate thiserror to 1.0.32 ([#25](https://github.com/mshrtsr/fitting-rs/issues/25)) ([eac8cbf](https://github.com/mshrtsr/fitting-rs/commit/eac8cbfdc2ab76db77b22ec2f8fa0c9741178956)) -* **deps:** update rust crate thiserror to 1.0.34 ([#36](https://github.com/mshrtsr/fitting-rs/issues/36)) ([6fb6db0](https://github.com/mshrtsr/fitting-rs/commit/6fb6db00be8e56c52226f0c97aa2c796fd06a520)) +* **deps:** update rust crate ndarray to 0.15.6 ([#27](https://github.com/tasshi-me/fitting-rs/issues/27)) ([ef30236](https://github.com/tasshi-me/fitting-rs/commit/ef30236fa7a5513b14b5d3ecd49fdca8aae74497)) +* **deps:** update rust crate serde to 1.0.143 ([#31](https://github.com/tasshi-me/fitting-rs/issues/31)) ([4563832](https://github.com/tasshi-me/fitting-rs/commit/45638320e0ab7f6b1f5c0c2b5f021be988c4a5be)) +* **deps:** update rust crate serde to 1.0.144 ([#37](https://github.com/tasshi-me/fitting-rs/issues/37)) ([2655092](https://github.com/tasshi-me/fitting-rs/commit/26550921439f3e189f0ce43767f4444a05f1c6b3)) +* **deps:** update rust crate thiserror to 1.0.32 ([#25](https://github.com/tasshi-me/fitting-rs/issues/25)) ([eac8cbf](https://github.com/tasshi-me/fitting-rs/commit/eac8cbfdc2ab76db77b22ec2f8fa0c9741178956)) +* **deps:** update rust crate thiserror to 1.0.34 ([#36](https://github.com/tasshi-me/fitting-rs/issues/36)) ([6fb6db0](https://github.com/tasshi-me/fitting-rs/commit/6fb6db00be8e56c52226f0c97aa2c796fd06a520)) ### Chores -* update renovate.json5 ([557c972](https://github.com/mshrtsr/fitting-rs/commit/557c9720ef9b7f40999e6439ac91a65787c88486)) +* update renovate.json5 ([557c972](https://github.com/tasshi-me/fitting-rs/commit/557c9720ef9b7f40999e6439ac91a65787c88486)) -## [0.4.0](https://github.com/mshrtsr/fitting-rs/compare/0.3.0...0.4.0) (2022-08-19) +## [0.4.0](https://github.com/tasshi-me/fitting-rs/compare/0.3.0...0.4.0) (2022-08-19) ### ⚠ BREAKING CHANGES @@ -68,37 +68,37 @@ ### Features -* **gaussian:** Redesign API ([#15](https://github.com/mshrtsr/fitting-rs/issues/15)) ([14c9340](https://github.com/mshrtsr/fitting-rs/commit/14c9340b046c3e47086ae685705acb72faf25a50)) +* **gaussian:** Redesign API ([#15](https://github.com/tasshi-me/fitting-rs/issues/15)) ([14c9340](https://github.com/tasshi-me/fitting-rs/commit/14c9340b046c3e47086ae685705acb72faf25a50)) ### Bug Fixes -* coverage using cargo-kcov ([d1ce724](https://github.com/mshrtsr/fitting-rs/commit/d1ce724c8482288ca4e98b0bf30b76531cec505a)) +* coverage using cargo-kcov ([d1ce724](https://github.com/tasshi-me/fitting-rs/commit/d1ce724c8482288ca4e98b0bf30b76531cec505a)) ### Chores -* add CHANGELOG.md ([adefab3](https://github.com/mshrtsr/fitting-rs/commit/adefab34cd8171e54d37172ebeba8cccf93b13f7)) -* bootstrap releases for path: . ([#32](https://github.com/mshrtsr/fitting-rs/issues/32)) ([7096e8c](https://github.com/mshrtsr/fitting-rs/commit/7096e8c4aa13e7c66980df713b34cc9e8a4e5b43)) -* **deps:** update actions/cache action to v3 ([#28](https://github.com/mshrtsr/fitting-rs/issues/28)) ([aae4a4b](https://github.com/mshrtsr/fitting-rs/commit/aae4a4bf3c2e4bfa4c49a6acbeb4119e8f0c2b5b)) -* **deps:** update actions/checkout action to v3 ([#29](https://github.com/mshrtsr/fitting-rs/issues/29)) ([896bf16](https://github.com/mshrtsr/fitting-rs/commit/896bf16d27812a98b1e55a252ba6ae34c25c1921)) -* updated Cargo.toml (exclude section) ([fe52125](https://github.com/mshrtsr/fitting-rs/commit/fe52125da9fd3312a4053b9d2a47c864a238d56d)) -* updated README.md ([7422682](https://github.com/mshrtsr/fitting-rs/commit/7422682a6c08f57e191c037fdacf0554ec52de4f)) +* add CHANGELOG.md ([adefab3](https://github.com/tasshi-me/fitting-rs/commit/adefab34cd8171e54d37172ebeba8cccf93b13f7)) +* bootstrap releases for path: . ([#32](https://github.com/tasshi-me/fitting-rs/issues/32)) ([7096e8c](https://github.com/tasshi-me/fitting-rs/commit/7096e8c4aa13e7c66980df713b34cc9e8a4e5b43)) +* **deps:** update actions/cache action to v3 ([#28](https://github.com/tasshi-me/fitting-rs/issues/28)) ([aae4a4b](https://github.com/tasshi-me/fitting-rs/commit/aae4a4bf3c2e4bfa4c49a6acbeb4119e8f0c2b5b)) +* **deps:** update actions/checkout action to v3 ([#29](https://github.com/tasshi-me/fitting-rs/issues/29)) ([896bf16](https://github.com/tasshi-me/fitting-rs/commit/896bf16d27812a98b1e55a252ba6ae34c25c1921)) +* updated Cargo.toml (exclude section) ([fe52125](https://github.com/tasshi-me/fitting-rs/commit/fe52125da9fd3312a4053b9d2a47c864a238d56d)) +* updated README.md ([7422682](https://github.com/tasshi-me/fitting-rs/commit/7422682a6c08f57e191c037fdacf0554ec52de4f)) -## [0.3.0](https://github.com/mshrtsr/fitting-rs/compare/0.2.1...0.3.0) (2020-05-16) +## [0.3.0](https://github.com/tasshi-me/fitting-rs/compare/0.2.1...0.3.0) (2020-05-16) - Migrate from the `failure` crate to `thiserror`. - https://crates.io/crates/thiserror - Refactor some tests. -## [0.2.1](https://github.com/mshrtsr/fitting-rs/compare/0.2.0...0.2.1) (2019-12-04) +## [0.2.1](https://github.com/tasshi-me/fitting-rs/compare/0.2.0...0.2.1) (2019-12-04) - Error handing changed. Some functions returns Result instead of Option. - linalg.solve() is improved. Now it can solve NxM array with pivoting. -## [0.2.0](https://github.com/mshrtsr/fitting-rs/compare/0.1.0...0.2.0) (2019-11-08) +## [0.2.0](https://github.com/tasshi-me/fitting-rs/compare/0.1.0...0.2.0) (2019-11-08) - Using [ndarray](https://crates.io/crates/ndarray) instead of nested Vec - Improvement of unit test diff --git a/Cargo.toml b/Cargo.toml index 21abcbe..3d77d47 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ description = "Pure Rust curve fitting library" # with VCS tools and the like. documentation = "https://docs.rs/fitting/" homepage = "https://crates.io/crates/fitting" -repository = "https://github.com/mshrtsr/fitting-rs" +repository = "https://github.com/tasshi-me/fitting-rs" # This points to a file under the package root (relative to this `Cargo.toml`). # The contents of this file are stored and indexed in the registry. # crates.io will render this file and place the result on the crate's page. @@ -40,12 +40,12 @@ license = "MIT" exclude = ["/.github/*", "/scripts"] [badges] -circle-ci = { repository = "mshrtsr/fitting-rs", branch = "master" } -travis-ci = { repository = "mshrtsr/fitting-rs", branch = "master" } +circle-ci = { repository = "tasshi-me/fitting-rs", branch = "master" } +travis-ci = { repository = "tasshi-me/fitting-rs", branch = "master" } # Codecov: `repository` is required. `branch` is optional; default is `master` # `service` is optional; valid values are `github` (default), `bitbucket`, and # `gitlab`. -codecov = { repository = "mshrtsr/fitting-rs", branch = "master", service = "github" } +codecov = { repository = "tasshi-me/fitting-rs", branch = "master", service = "github" } # Maintenance: `status` is required. Available options are: # - `actively-developed`: New features are being added and bugs are being fixed. # - `passively-maintained`: There are no plans for new features, but the maintainer intends to diff --git a/README.md b/README.md index 3dc2058..20fbe25 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,9 @@ [![crates.io](https://img.shields.io/crates/v/fitting.svg)](https://crates.io/crates/fitting) [![docs.rs](https://docs.rs/fitting/badge.svg)](https://docs.rs/fitting) -[![Build and Test](https://github.com/mshrtsr/fitting-rs/workflows/Build%20and%20Test/badge.svg)](https://github.com/mshrtsr/fitting-rs/actions?query=workflow%3A%22Build+and+Test%22) -[![Format and Lint](https://github.com/mshrtsr/fitting-rs/workflows/Format%20and%20Lint/badge.svg)](https://github.com/mshrtsr/fitting-rs/actions?query=workflow%3A%22Format+and+Lint%22) -[![codecov](https://codecov.io/gh/mshrtsr/fitting-rs/branch/master/graph/badge.svg)](https://codecov.io/gh/mshrtsr/fitting-rs) +[![Build and Test](https://github.com/tasshi-me/fitting-rs/workflows/Build%20and%20Test/badge.svg)](https://github.com/tasshi-me/fitting-rs/actions?query=workflow%3A%22Build+and+Test%22) +[![Format and Lint](https://github.com/tasshi-me/fitting-rs/workflows/Format%20and%20Lint/badge.svg)](https://github.com/tasshi-me/fitting-rs/actions?query=workflow%3A%22Format+and+Lint%22) +[![codecov](https://codecov.io/gh/tasshi-me/fitting-rs/branch/master/graph/badge.svg)](https://codecov.io/gh/tasshi-me/fitting-rs) Curve fitting library for Rust diff --git a/renovate.json5 b/renovate.json5 index 7449208..f114273 100644 --- a/renovate.json5 +++ b/renovate.json5 @@ -1,3 +1,3 @@ { - "extends": ["github>mshrtsr/renovate-config"] + "extends": ["github>tasshi-me/renovate-config"] } diff --git a/scripts/coverage.sh b/scripts/coverage.sh index 37fdd2c..99a830a 100755 --- a/scripts/coverage.sh +++ b/scripts/coverage.sh @@ -4,7 +4,7 @@ export RUSTFLAGS="-Zinstrument-coverage" export TARGET_BINARY_DIR="target/debug" export COVERAGE_HTML_DIR=${TARGET_BINARY_DIR}"/coverage" export LLVM_PROFILE_DIR=${COVERAGE_HTML_DIR}"/profraw" -export LLVM_PROFILE_FILE=${LLVM_PROFILE_DIR}"/mshrtsr-%p-%m.profraw" +export LLVM_PROFILE_FILE=${LLVM_PROFILE_DIR}"/tasshi-me-%p-%m.profraw" export LLVM_PROFDATA_FILE=${LLVM_PROFILE_DIR}"/merged.profdata" export TARGET_BINARY_FILE=${TARGET_BINARY_DIR}"/fitting" diff --git a/src/gaussian/gaussian.rs b/src/gaussian/gaussian.rs index 8cf5c3f..eb62816 100644 --- a/src/gaussian/gaussian.rs +++ b/src/gaussian/gaussian.rs @@ -144,7 +144,7 @@ impl Gaussian { /// - All elements of `y_vec` must be positive numbers /// - If the distribution is "long-tailed", it affects the fitting accuracy. /// - A detailed description can be found in Reference 1. - /// - Also, you can see the reproduction and workaround in [GitHub](https://github.com/mshrtsr/fitting-rs/issues/6#issuecomment-1367095969). + /// - Also, you can see the reproduction and workaround in [GitHub](https://github.com/tasshi-me/fitting-rs/issues/6#issuecomment-1367095969). /// /// # References /// \[1\] [E. Pastuchov ́a and M. Z ́akopˇcan, ”Comparison of Algorithms for Fitting a Gaussian Function used in Testing Smart Sensors”, Journal of Electrical Engineering, vol. 66, no. 3, pp. 178-181, 2015.](https://www.researchgate.net/publication/281907940_Comparison_of_Algorithms_For_Fitting_a_Gaussian_Function_Used_in_Testing_Smart_Sensors)