Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code sample: bimodal distribution #4

Open
YujiSODE opened this issue Mar 6, 2018 · 4 comments
Open

code sample: bimodal distribution #4

YujiSODE opened this issue Mar 6, 2018 · 4 comments

Comments

@YujiSODE
Copy link
Owner

YujiSODE commented Mar 6, 2018

code sample

Repository owner locked and limited conversation to collaborators Mar 6, 2018
@YujiSODE
Copy link
Owner Author

YujiSODE commented Mar 6, 2018

sample codes to fit bimodal distribution

#bimodal_sample_regLines.tcl
#test codes for "regLines.tcl"
source ./regLines.tcl;
#bimodal data
set x {0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 1.1 1.2 1.3 1.4 2.5 2.6 2.7 2.8 2.9 3.0 3.1 3.2};
set y {2 4 8 12 9 16 18 24 28 23 15 10 8 4 0 3 5 8 10 7 14 8 4};
#input data range: 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 2.5 2.7 2.9 3.1 3.2
::regLines::reglines $x $y "reglinesSample[clock seconds]";

output script is here
1520317514_bmddist

@YujiSODE
Copy link
Owner Author

YujiSODE commented Mar 6, 2018

Generated random variables

1520318955datafreq

@YujiSODE
Copy link
Owner Author

YujiSODE commented Mar 9, 2018

sample codes to fit bimodal distribution with interval of 0.3

#bimodal02_sample_regLines.tcl
#test codes for "regLines.tcl"
source ./regLines.tcl;
#bimodal data
set x {0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 1.1 1.2 1.3 1.4 2.5 2.6 2.7 2.8 2.9 3.0 3.1 3.2};
set y {2 4 8 12 9 16 18 24 28 23 15 10 8 4 0 3 5 8 10 7 14 8 4};
#input data range: 0.3
::regLines::reglines $x $y "reglinesSample[clock seconds]";

output script is here
1520603057_bmddist

Generated random variables

1520604859datafreq

@YujiSODE
Copy link
Owner Author

Corrected version for fitting using manually

1520317514_bmddist

Corrected version for fitting with interval of 0.3

1520603057_bmddist

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant