Tag Info

New answers tagged

3

The table in the screenshot was produced by TableForm.


3

The closest thing to an R data.frame in Mathematica is a DataSet; http://reference.wolfram.com/language/ref/Dataset.html


1

I'm a bit pressed for time at the moment so this is not a complete answer. The key to understanding SmoothKernelDistribution lies in understanding KernelMixtureDistribution whose PDF it interpolates. The internals for SmoothKernelDistribution are simply coordinates for that interpolation. As for KernelMixtureDistribution it is important to look at the ...


12

Yes. Use System`Private`SetNoEntry on any expression which you want to protect in this manner. This works on per-expression basis, so you have to apply this function to any instance which you want to protect. The result is a reference to the same expression. The changes are performed in-place (no copy is created): expr = h[1, 2, 3] (* h[1, 2, 3] *) ...


0

I figured it out and I believe this is one of the biggest pitfalls for newbies. Rather than filling a preallocated vector, MATLAB style, one ought to use the function table instead, which executes the expression k number of times. Hence, the following code does it: m = 2; n = 3; nonce = {{1, 0}, {0, 0}, {0, 0}}; data = Table[q = ...



Top 50 recent answers are included