Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd86539c

Browse files
author
minjk-bl
committed
Edit to remove dist plot on multinomial
1 parentb2a0cc6 commitd86539c

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

‎visualpython/js/m_stats/ProbDist.js‎

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,24 @@ define([
8686
// discrete option
8787
$(that.wrapSelector('.vp-pd-display-option.dist')).show();
8888

89-
// set size to 100
90-
$(that.wrapSelector('#size')).val(100);
91-
that.state.size=100;
92-
93-
// hide continuous action
94-
if(that.state.action==='stats-to-pvalue'||that.state.action==='pvalue-to-stats'){
95-
$(that.wrapSelector('#action')).val('random-number');
96-
$(that.wrapSelector('#action')).trigger('change');
89+
// set size to 1000
90+
$(that.wrapSelector('#size')).val(1000);
91+
that.state.size=1000;
92+
93+
// hide distribution plot for multinomial
94+
if(distType==='multinomial'){
95+
$(that.wrapSelector('.vp-pd-display-option.dist-plot')).hide();
96+
// hide other actions
97+
if(that.state.action!=='random-number'){
98+
$(that.wrapSelector('#action')).val('random-number');
99+
$(that.wrapSelector('#action')).trigger('change');
100+
}
101+
}else{
102+
// hide continuous action
103+
if(that.state.action==='stats-to-pvalue'||that.state.action==='pvalue-to-stats'){
104+
$(that.wrapSelector('#action')).val('random-number');
105+
$(that.wrapSelector('#action')).trigger('change');
106+
}
97107
}
98108
}else{
99109
// continuous option

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp