![]() |
Opticka 2.18.1
Opticka is an experiment manager for behavioral research.
|
Public Types | |
| enum | Events { checkData } |
Public Member Functions | |
| function | getDensity (in varargin) |
| Class constructor. | |
| function | run (in obj) |
| Our main RUN method. | |
| function | scatterColumns (in obj, in c1, in c2) |
| function | jitterData (in obj, in datain, in jitter) |
| function get | nColumns (in obj) |
| function get | isDataEqualLength (in obj) |
| function get | plotX (in obj) |
| function get | plotY (in obj) |
| function get | uniquecases (in obj) |
| function set | x (in obj, in value) |
| function set | y (in obj, in value) |
| function set | columnlabels (in obj, in value) |
| function set | cases (in obj, in value) |
| function | haveData (in obj) |
| function | reset (in obj) |
| reset the data to empty | |
| function | doSinglePlots (in obj, in pn) |
Static Public Member Functions | |
| static function | violin (in x, in y, in varargin) |
Public Attributes | |
| Property | comments |
| comments to add to this data comparison | |
| Property | x |
| our first data group, plotted along the abscissa | |
| Property | y |
| our second data group, plotted along the ordinate | |
| Property | xrownames |
| a cell of names for each row | |
| Property | yrownames |
| a cell of names for each row | |
| Property | nboot |
| number of bootstrap iterations default: 1000 | |
| Property | avgFunction |
| function handle to bootstrap default: @mean | |
| Property | alpha |
| P value to use for all statistics. | |
| Property | legendtxt |
| A cell list of the main X and Y data, i.e. {'Control','Drug'}. | |
| Property | columnlabels |
| if X/Y have more than 1 column, you can detail column names here | |
| Property | dogauss |
| Add gaussian fits to the histograms? default: true. | |
| Property | addjitter |
| add jitter to scatterplot? 'x', 'y', 'both', 'equal', 'none' | |
| Property | cases |
| celllist of case names the same length as X/Y | |
| Property | nominalcases |
| are our cases nominal or ordinal? | |
| Property | dooutlier |
| remove outliers using 'grubb', 'rosner', 'limit', '3SD' or 'none' | |
| Property | rosnern |
| rosner outlier number of outliers | |
| Property | outlierp |
| p to use for outlier removal for rosner and grubb | |
| Property | outlierlimit |
| outlier limit for limit method | |
| Property | jitterfactor |
| scalefactor for jitter of scatter plot | |
| Property | singleplots |
| do we spit out each plot in its own figure for easy export? | |
| Property | showoriginalscatter |
| do we show the original points in the scatter before scattering them? | |
| Property | autorun |
| if we are passed data on construction, run straight away | |
| Property | bartype |
| how to plot the histogram | |
| Property | barwidth |
| width of histogram bars | |
| Property | verbose |
| are we verbose printing to command line? | |
| Property | scaleaxes |
| do we scale the axes to be equal for the scatterplots | |
| Property | showunityline |
| do we show the unity line for the scatterplot? | |
| Property | nBins |
| number of bins for histogram | |
| Property | centreBins |
| centre histogram bins | |
| Property | densityKernel |
| density kernel to use, 'normal', 'box', 'triangle', 'epanechnikov' | |
| Property | densityFunction |
| density function, 'pdf', 'cdf','icdf', 'survivor', 'cumhazard' | |
| Property | densityBounds |
| density bounds; 'unbounded', 'positive' or 2-element vector for lower and upper | |
| Property | index |
| for multiple columns only run a subset; empty runs all. | |
| Property | normaliseScatter |
| normalise (Z-score) values to plot on scatter? | |
| Property | doDistribution |
| show distribution plot underneath box plot? | |
| Property | doMedianCI |
| do a median CI, takes longer if dataset is large... | |
| enum getDensity::Events |
| function getDensity::getDensity | ( | in | varargin | ) |
Class constructor.
More detailed description of what the constructor does.
| args | are passed as a structure of properties which is parsed. |
| function set getDensity::cases | ( | in | obj, |
| in | value | ||
| ) |
| obj | this instance object |
| function set getDensity::columnlabels | ( | in | obj, |
| in | value | ||
| ) |
| obj | this instance object |
| function getDensity::doSinglePlots | ( | in | obj, |
| in | pn | ||
| ) |
| obj | this instance object |
| function getDensity::haveData | ( | in | obj | ) |
| obj | this instance object |
| function get getDensity::isDataEqualLength | ( | in | obj | ) |
| obj | this instance object |
| function getDensity::jitterData | ( | in | obj, |
| in | datain, | ||
| in | jitter | ||
| ) |
| obj | this instance object |
| function get getDensity::nColumns | ( | in | obj | ) |
| obj | this instance object |
| function get getDensity::plotX | ( | in | obj | ) |
| obj | this instance object |
| function get getDensity::plotY | ( | in | obj | ) |
| obj | this instance object |
| function getDensity::reset | ( | in | obj | ) |
reset the data to empty
| obj | this instance object |
| function getDensity::run | ( | in | obj | ) |
Our main RUN method.
This performs the analysis and plots the results for the stored data.
| obj | the class object automatically passed in |
| function getDensity::scatterColumns | ( | in | obj, |
| in | c1, | ||
| in | c2 | ||
| ) |
| obj | this instance object |
| function get getDensity::uniquecases | ( | in | obj | ) |
| obj | this instance object |
|
static |
| function set getDensity::x | ( | in | obj, |
| in | value | ||
| ) |
| obj | this instance object |
| function set getDensity::y | ( | in | obj, |
| in | value | ||
| ) |
| obj | this instance object |
| Property getDensity::addjitter |
add jitter to scatterplot? 'x', 'y', 'both', 'equal', 'none'
| Property getDensity::alpha |
P value to use for all statistics.
| Property getDensity::autorun |
if we are passed data on construction, run straight away
| Property getDensity::avgFunction |
function handle to bootstrap default: @mean
| Property getDensity::bartype |
how to plot the histogram
| Property getDensity::barwidth |
width of histogram bars
| Property getDensity::cases |
celllist of case names the same length as X/Y
| Property getDensity::centreBins |
centre histogram bins
| Property getDensity::columnlabels |
if X/Y have more than 1 column, you can detail column names here
| Property getDensity::comments |
comments to add to this data comparison
| Property getDensity::densityBounds |
density bounds; 'unbounded', 'positive' or 2-element vector for lower and upper
| Property getDensity::densityFunction |
density function, 'pdf', 'cdf','icdf', 'survivor', 'cumhazard'
| Property getDensity::densityKernel |
density kernel to use, 'normal', 'box', 'triangle', 'epanechnikov'
| Property getDensity::doDistribution |
show distribution plot underneath box plot?
| Property getDensity::dogauss |
Add gaussian fits to the histograms? default: true.
| Property getDensity::doMedianCI |
do a median CI, takes longer if dataset is large...
| Property getDensity::dooutlier |
remove outliers using 'grubb', 'rosner', 'limit', '3SD' or 'none'
| Property getDensity::index |
for multiple columns only run a subset; empty runs all.
| Property getDensity::jitterfactor |
scalefactor for jitter of scatter plot
| Property getDensity::legendtxt |
A cell list of the main X and Y data, i.e. {'Control','Drug'}.
| Property getDensity::nBins |
number of bins for histogram
| Property getDensity::nboot |
number of bootstrap iterations default: 1000
| Property getDensity::nominalcases |
are our cases nominal or ordinal?
| Property getDensity::normaliseScatter |
normalise (Z-score) values to plot on scatter?
| Property getDensity::outlierlimit |
outlier limit for limit method
| Property getDensity::outlierp |
p to use for outlier removal for rosner and grubb
| Property getDensity::rosnern |
rosner outlier number of outliers
| Property getDensity::scaleaxes |
do we scale the axes to be equal for the scatterplots
| Property getDensity::showoriginalscatter |
do we show the original points in the scatter before scattering them?
| Property getDensity::showunityline |
do we show the unity line for the scatterplot?
| Property getDensity::singleplots |
do we spit out each plot in its own figure for easy export?
| Property getDensity::verbose |
are we verbose printing to command line?
| Property getDensity::x |
our first data group, plotted along the abscissa
| Property getDensity::xrownames |
a cell of names for each row
| Property getDensity::y |
our second data group, plotted along the ordinate
| Property getDensity::yrownames |
a cell of names for each row