List of commits:
Subject Hash Author Date (UTC)
Add deviation_from_normality 847524ba174c1a7c86ad7dd80160896d84621778 Jason Hoelscher-Obermaier 2017-05-30 14:49:39
Add option to method for_each_evaluation_get in meta_ev.m 3aa2fd8ab0567a782073a0eba67f3bd5a2e2ba57 Jason Hoelscher-Obermaier 2017-05-30 14:46:02
Only attempt to export pulse_trace (to file pulsed_traces.mat) if not empty 69c13a5ae1b4265cc760addb9089d180d4a0f895 Jason Hoelscher-Obermaier 2017-05-30 14:44:49
Add more varargin-options to plotLogneg.m and plot_logneg_versus_gamma.m bd4d77856eaaf5afdf38e2fb22b177a18249d83c Jason Hoelscher-Obermaier 2017-05-30 14:27:35
Add options for colorbar position and data label background color to plot_matrix 261a772c66212e9b82d9125cfb059565dae41fba Jason Hoelscher-Obermaier 2017-05-22 17:35:34
Add fct set_legend_title be01bc463524c4943a3268b349f6a524a62c64f3 Jason Hoelscher-Obermaier 2017-05-16 13:34:19
Allow to set interpreter and fontsize in labels.m 24f21770d074737ed0b9d7e879cff39ee3f9fd63 Jason Hoelscher-Obermaier 2017-05-16 13:32:24
Attempt to open generated pdf in save_fig_pdf bcf7b91a892bc3cd6f1da5202cfff0825d3ba406 Jason Hoelscher-Obermaier 2017-05-16 13:30:56
Add hackish workaround for problems with wrong fontsize when exporting figures e977df7ea63dfb64d14244db41dcbdf34832fbe9 Jason Hoelscher-Obermaier 2017-05-13 12:18:19
Add option 'show_physicality' to plot_logneg_versus_gamma.m (class meta_ev) 33dba0173e7d446c08ab89b7f0d5bd7c00f6755d Jason Hoelscher-Obermaier 2017-05-13 12:02:12
Set default font size for legends and labels to 11 4f9be2e429605dd90ab6b1eabb88fea12c7e9ddb Jason Hoelscher-Obermaier 2017-05-13 12:01:05
Remove figure.m to avoid MATLAB warnings 3c8e854f1e48d28df090753f615e5e1028259531 Jason Hoelscher-Obermaier 2017-05-13 11:57:42
Copy generated png to clipboard autom.ly in save_fig_pdf 70897f3af36723888e59ae3421545d96d67db302 Jason Hoelscher-Obermaier 2017-05-10 10:18:00
Add option to hide legend entries for 'Physicality' to plotLogneg db263de99d27a86255cd724b06208c1cae93bd76 Jason Hoelscher-Obermaier 2017-05-10 10:17:12
Fix bug: surround arguments to 'system' by double quotes dffc09c758a8f55fb8dc2a4ddf68c8593be46a3d Jason Hoelscher-Obermaier 2017-05-09 10:24:55
Add property max_physical_logneg to entanglement_evaluation 865055eadb8c4b035321b2359b69dad4f48e33ec Jason Hoelscher-Obermaier 2017-05-08 09:37:40
Add option 'only_physical' to plotLogneg and plot_logneg_versus_gama a5510a09ab9ecb8239aef3853867884aefb28e3b Jason Hoelscher-Obermaier 2017-05-07 09:47:52
Add option 'two_sidebands' to trace_out 3f70b4498e116bf89ea2230e4a6b081d8d240bc3 Jason Hoelscher-Obermaier 2017-05-07 08:14:45
Fix bug in meta_ev 25d2497bf41eaf1198d88269dd3460812b38e18f Jason Hoelscher-Obermaier 2017-05-05 17:45:20
Allow plotting of abs. values with log. color scale in plot_CM 2147950f70bb2631656c1c20448eeda106acf6e2 Jason Hoelscher-Obermaier 2017-05-05 16:15:26
Commit 847524ba174c1a7c86ad7dd80160896d84621778 - Add deviation_from_normality
- simple function which calculates an ad-hoc measure of deviation
from normality based on the deviation of the empirical cumulative
distribution function from that expected for a Gaussian with the
same variance and mean
Author: Jason Hoelscher-Obermaier
Author date (UTC): 2017-05-30 14:49
Committer name: Jason Hoelscher-Obermaier
Committer date (UTC): 2017-05-30 14:49
Parent(s): 3aa2fd8ab0567a782073a0eba67f3bd5a2e2ba57
Signing key:
Tree: 6de83d64da4d6c136efe4b9480b70e854bf9dd68
File Lines added Lines deleted
misc/deviation_from_normality.m 38 0
File misc/deviation_from_normality.m added (mode: 100644) (index 0000000..659b446)
1 function dev = deviation_from_normality(samples, varargin)
2 % DEVIATION_FROM_NORMALITY(s) takes a vector of samples s
3 % and returns a measure of the deviation of s
4 % from a normal distribution with mean mu and std. deviation sig
5 % (by default, mu and sigma are calculated from the sample s)
6 %
7 % Deviation from normality is assessed as follows:
8 % - the empirical cdf for s is computed
9 % - the difference between the empirical cdf and the cdf
10 % for the normal with mean mu and std. deviation sig is integrated
11 % - the integration works as follows:
12 % - ...
13
14 % DEFAULT: calculate mu and sigma from samples
15 mu = mean(samples);
16 sig = std(samples);
17
18 for k=1:2:length(varargin)
19 switch lower(varargin{k})
20 case {'mean', 'mu'}
21 mu = varargin{k+1};
22 case {'std', 'stddev', 'sig', 'standard_deviation', 'sigma'}
23 sig = varargin{k+1};
24 otherwise
25 error(['Unrecognized varargin-argument ', varargin{k}]);
26 end
27 end
28
29 samples_sorted = sort(samples);
30 cdf_norm = @(x)cdf('Normal',x, mu, sig);
31 cdf_devs = zeros(1,length(samples));
32 for k=1:length(samples)
33 x = samples_sorted(k);
34 cdf_emp = (k-1)/length(samples);
35 cdf_the = cdf_norm(x);
36 cdf_devs(k) = abs(cdf_emp - cdf_the);
37 end
38 dev = sum(cdf_devs)/length(samples);
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/gutc61/Membrane

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/gutc61/Membrane

Clone this repository using git:
git clone git://git.rocketgit.com/user/gutc61/Membrane

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main