-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #218 from theGreatHerrLebert/david@simulation
David@simulation
- Loading branch information
Showing
9 changed files
with
92 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "imspy" | ||
version = "0.2.20" | ||
version = "0.2.22" | ||
description = "" | ||
authors = ["theGreatHerrLebert <[email protected]>"] | ||
readme = "README.md" | ||
|
@@ -22,7 +22,7 @@ pyopenms = ">=2.6.0" | |
sagepy = ">=0.2.10" | ||
sagepy-connector = ">=0.2.11" | ||
|
||
imspy-connector = ">=0.2.21" | ||
imspy-connector = ">=0.2.22" | ||
|
||
scipy = ">=1.7.1" | ||
tqdm = ">=4.66" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "imspy-connector" | ||
version = "0.2.20" | ||
version = "0.2.22" | ||
edition = "2021" | ||
|
||
[lib] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
use mscore::algorithm::utility::emg_cdf_range; | ||
use mscore::algorithm::utility::{calculate_bounds_emg, emg_cdf_range}; | ||
|
||
fn main() { | ||
let mu = 0.0; | ||
let sigma = 1.0; | ||
let lambda = 1.0; | ||
let lower_limit = 0.0; | ||
let upper_limit = 2.0; | ||
let n_steps: usize = 1000; | ||
let step_size = 0.0001; | ||
let l_s = 25.0; | ||
let u_s = 25.0; | ||
|
||
let cdf_range = emg_cdf_range(lower_limit, upper_limit, mu, sigma, lambda); | ||
let (lb, ub) = calculate_bounds_emg(mu, sigma, lambda, step_size, 0.99, l_s, u_s, Some(n_steps)); | ||
|
||
println!("EMG CDF from {} to {} = {}", lower_limit, upper_limit, cdf_range); | ||
let cdf_range = emg_cdf_range(lb, ub, mu, sigma, lambda, Some(n_steps)); | ||
|
||
println!("EMG CDF from {} to {} = {}", lb, ub, cdf_range); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters