Can I turn off the plotting of Gauss Kernel Density?

I want the data from the Kernel Density function to use later.

2 Answers

0

Hi,

Thank you for your question. At this time there isn't support for turning off the kernel density plot. We will note this for future development, though.

Please note that the kernel density data can be stored for later use using the kernelDensityResults structure.

For example:

/*
** Example One:
** Basic usage
*/

// Load data
fname = getGAUSSHome $+ "examples/winevolatileacidity.csv";
data = loadd(fname);

// Call kernelDensity function
// with default normal density
struct kernelDensityResults krslt1;
krslt1 = kernelDensity(data[., "volatile acidity"]);

// Extract y
y_kde = krslt1.py;

// Extract X
x_kde = krslt1.px;

You can find more information about the kernelDensityResults results structure in the online documentation.

0

Hi Stephen,

One quick note - if you would like to manually turn off the kernel density plot, you can do so in the kerneldensity.src file. To do this, comment out line 241, as shown below.

        // Plot the densities
//        _plotKernel(kplt, names, ivar, px, py);


You must login to post answers.

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.

Try GAUSS for 14 days for FREE

See what GAUSS can do for your data

© Aptech Systems, Inc. All rights reserved.

Privacy Policy