提问


Implement the "total variation distance" (TVD) in Matlab
I am trying to implement the Total variation distance of probability measures (TVD) in Matlab. Would it be correct to use the ...

1 year 前 | 2 个回答 | 0

2

个回答

已回答
The best approach to avoid the Kullback–Leibler divergence equal to infinite
So far, I found this theoretical argument, which partially solve my issue, but still, the infinite values remain when % if P_i ...

1 year 前 | 0

提问


The best approach to avoid the Kullback–Leibler divergence equal to infinite
Given two discrete probability distributions P and Q, containing zero values in some bins, what is the best approach to avoid th...

1 year 前 | 3 个回答 | 0

3

个回答

提问


Similarity of histograms: interpretation of cosine and jaccard similarities with "pdist2"
I would like to assess the similarity between two "bin counts" (that I previously derived through the "histcounts" function), by...

1 year 前 | 1 个回答 | 0

1

个回答

已回答
How to use chi2gof within CUPID
I might have found a solution that makes sense to me and gives me what I would expect, even though I am not 100% sure it is corr...

1 year 前 | 0

提问


How to use chi2gof within CUPID
[The same question on the CUPID GitHub] Two examples of usage of the Matlab's "Chi-square goodness-of-fit test" (chi2gof) funct...

1 year 前 | 2 个回答 | 0

2

个回答

提问


In the chi-square test, how to calculate (the correct number of parameters and consequently) the correct number of degrees of freedom, without using the chi2gof function?
Question In the chi-square test, how to calculate (the correct number of parameters and consequently) the correct number of deg...

1 year 前 | 1 个回答 | 0

1

个回答

提问


Usage of chi2gof: how to derive the "expected" values from the fitting distribution to then use them as argument of chi2gof?
How to derive the "expected" values from the fitting distribution to then use them as argument of chi2gof? observed_data = expr...

1 year 前 | 1 个回答 | 0

1

个回答

提问


Usage of chi2gof
(A very silly question) From the chi2gof documentation I see that chi2gof takes 1 argument h = chi2gof(x) Since the chi-square...

1 year 前 | 1 个回答 | 0

1

个回答

提问


Goodness-of-Fit for a best-fitting distribution? (by using CUPID)
By using CUPID, how to assess the Goodness-of-Fit for this best-fitting distribution? addpath('.../Cupid-master') pd = makedis...

1 year 前 | 1 个回答 | 0

1

个回答

提问


Fit a statistical distribution to truncated data
I have a "truncated dataset" and I would need to infer the distribution that most likely fits the data. Even though I have a "tr...

1 year 前 | 3 个回答 | 0

3

个回答

提问


Does fitdist work for fitting a distribution to truncated data?
Does fitdist work for fitting a distribution to truncated data? Indeed, it looks like that the mean of the the fitting distrib...

1 year 前 | 2 个回答 | 0

2

个回答

提问


Evaluate the "goodness of fit" of a distribution fitting, when using the function "fitdist"
When I use the function fitdist to find the best distribution fitting, I would like to measure or assess the goodness of fitting...

1 year 前 | 0 个回答 | 0

0

个回答

已回答
How to find (i) unique datetimes and (ii) count their occurences?
I might have found a solution/workaround, but if there are more compact, correct and robust methods I will accept them! a = [{'...

1 year 前 | 0

提问


How to find (i) unique datetimes and (ii) count their occurences?
How to find (i) unique datetimes and (ii) count their occurences? % Input a = [{'22-Jun-2023 09:00:00'} {'23-Jun-2023 19:...

1 year 前 | 1 个回答 | 0

1

个回答

提问


How to change datetime format?
Given this: datetime('02-Jul-2023','InputFormat','dd-MMM-yyyy') How can I get this format ? datetime('02-Jul-2023 22:00:00')

1 year 前 | 1 个回答 | 0

1

个回答

已回答
A compact way to assign values of a matrix to another matrix
Sorry, stupid question... I had a logical matrix "y" and I got what I wanted, just by assigning a numerical array instead of a l...

1 year 前 | 0

提问


A compact way to assign values of a matrix to another matrix
How to assign the values of matrix "x" to the matrix "y" in a, possibly, single line of code? % Input x = [3 2 2; 4 5 3; 6 5 4...

1 year 前 | 2 个回答 | 0

2

个回答

提问


xticks and yticks with decimal exponents
How to reproduce exactly these axes? % My attemot plot(10^(0):10^(3),10^(-8):10^(3)) set(gca, 'XScale', 'log', 'YScale', ...

1 year 前 | 2 个回答 | 0

2

个回答

提问


Transparent patches in the main figure, but no transparent patches in the legend
In the following example, how can I have transparent patches in the main figure and No transparent patches in the legend? N = 1...

1 year 前 | 1 个回答 | 0

1

个回答

提问


Highest-quality printed graphics with exportgraphics
Typical commands for exportgraphics are the following: exportgraphics(fig, 'output.tif') % raster fo...

1 year 前 | 1 个回答 | 0

1

个回答

提问


Extract "labelhandles" from Legend
Given the definition of Legend in Matlab: [leg,labelhandles,outH,outM] = legend(varargin) Would it be possible to get the cont...

1 year 前 | 1 个回答 | 1

1

个回答

已回答
If we have 2 Legend's outputs, the "Number of Columns" option does not work
I might have found a solution, but the "FaceAlpha" option acts on both the figure patches and the legend symbols: N = 100; x =...

1 year 前 | 0

| 已接受

提问


If we have 2 Legend's outputs, the "Number of Columns" option does not work
Case 1. If we add the "Number of Columns" option to the Legend, and if we have 2 Legend's outputs, the number of columns does no...

1 year 前 | 1 个回答 | 0

1

个回答

提问


A compact “if” statement using “or” operator
A more compact way to write the “if” statement using “or” operator, than this one? if i == 1 || i == 2 || i == 7 || i == 8 || i...

1 year 前 | 1 个回答 | 0

1

个回答

提问


How to create curved arrows by giving tail and head coordinates?
How to create curved arrows by giving tail and head coordinates as inputs? Maybe giving a radius of curvature as input, as well...

1 year 前 | 1 个回答 | 0

1

个回答

已回答
The annotation('textarrow',...) does not go out of a plot
I found this solution. In case you know something better, please let me know! hf = figure; ax = subplot(3,3,5); hold on sc...

1 year 前 | 0

| 已接受

提问


The annotation('textarrow',...) does not go out of a plot
How to place an annotation('textarrow',...) out of a plot? hf = figure; ax = subplot(3,3,5); hold on scatter(0:3,0:3,[],'fil...

1 year 前 | 1 个回答 | 0

1

个回答

已回答
How can I put shapes (as circles, and arrows) and (multi-rows) texts outside a Matlab plot?
I found a minimum working example: ax = subplot(3,3,5); hold on scatter(0:3,0:3,[],'filled','Clipping', 'off') plot(0:3,0:3,...

1 year 前 | 0

提问


How can I put shapes (as circles, and arrows) and (multi-rows) texts outside a Matlab plot?
How can I put shapes (as circles, and arrows) and (multi-rows) texts outside a Matlab plot, as in the following picture? Indeed...

1 year 前 | 2 个回答 | 0

2

个回答

加载更多