Recent content by yourgoldteeth
-
Y
NM-Solved(How to plot points from a Maximize[ ] output)
The way I would do it is assign that solution to a variable, like this solution = Maximize[...] Then, you can apply this as you see fit. Here is an example: Plot[function[a,b,c] /. solution[[2]]] The /. tells Mathematica to replace the arguments of function[] with the values of...- yourgoldteeth
- Post #2
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
Y
Mathematica Optimizing parameters without specifying them (Mathematica)
I use NMinimize to optimize a likelihood function. The number of parameters included depends on the dimensions of a vector I pass. I would like to have Mathematica check the dimensions of the vector, declare the correct number of parameters for me, and then solve for them. Right now, I have...- yourgoldteeth
- Thread
- Mathematica Parameters
- Replies: 1
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
Y
Mathematica Mathematica: dealing with significant figures
The interval function does not appear to be what I am looking for. I have a single value, and need to specify a range based on significant figures rules for that one value. The interval function requires a range as input.- yourgoldteeth
- Post #3
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
Y
Mathematica Mathematica: dealing with significant figures
Hi everyone. Hopefully this is easy to solve. I have large amounts of mined data that have differing levels of precision. I want to do analysis of: 1) number of decimal places present 2) significant figure error intervals based on the precision (for instance, 0.003 could have been...- yourgoldteeth
- Thread
- Mathematica Significant figures
- Replies: 4
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
Y
Mathematica Declaring/filling arrays of arbitrary size in Mathematica
Thanks for your help. I will try splitting the list and see if it helps. The big issue is this: the bottleneck of my program is a likelihood function that takes 2000 numerical integrals. And then I have to optimize a three-parameter model with that likelihood function (that takes about...- yourgoldteeth
- Post #9
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
Y
Mathematica Declaring/filling arrays of arbitrary size in Mathematica
I found a faster, more elegant solution. Since the empty parts of my array were of type $String, I did this: masterData = DeleteCases[rawData[[1]], _String, Infinity]; Which got rid of all the empty parts without flattening my vector.- yourgoldteeth
- Post #7
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
Y
Mathematica Declaring/filling arrays of arbitrary size in Mathematica
airborne18: thanks for the reply!. When you get your Mathematica machine back, I would love to see examples of your method.- yourgoldteeth
- Post #5
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
Y
Mathematica Declaring/filling arrays of arbitrary size in Mathematica
Found a way to do it. I realized that the longest vector in my array was 52 long. So I did this (*specify an empty array with x as a placeholder*) cleanData = ConstantArray["x", {Length[rangeData], 26, 2}]; (*write to the new array *) For[i = 1, i <= Length[rangeData], i++, {...- yourgoldteeth
- Post #3
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
Y
Mathematica Declaring/filling arrays of arbitrary size in Mathematica
edit: Forgot to add Mathematica in the title. Sorry! Hi everyone. I mined a lot of data and want to analyze it in Mathematica. The data is of the form {{x11, y11, x12, y11, x13, y13},{x21, y21, x22, y22}...} meaning that each set of x,y pairs is not necessarily the same size...- yourgoldteeth
- Thread
- Arrays Mathematica
- Replies: 9
- Forum: MATLAB, Maple, Mathematica, LaTeX