@Murta Absolutely impossible to turn this into something accurate. In the far end of the street, you wont even be able to have 1 pixel per person. Image processing is the wrong way. Why don't you approximate the street width and length and estimate how many people per squaremeter are in such a dense crowd? This will give you better results, I'm sure.
hm this is weird. In a book I have that glosses over RBFs, the equation for Gaussian RBF is phi(r) = e^(-r)^(2), however in wikipedia: en.wikipedia.org/wiki/Radial_basis_function the gaussian equation is phi(r) = e^(-r * some_weird_curvy e)^(2)
@MichaelHale it looks like a reef shark. where were you?
@Kuba sorry for the late reply. I am not on here much. I think it is an example of Mathematica having several ways of doing things. It can be useful for making code a little bit briefer
According to: tutorial/WolframSystemSessions
Initialization
On startup, the Wolfram Language kernel does the following:
Performs license management operations.
Runs Wolfram Language commands specified in any -run options passed to the kernel executable.
Runs the Wolfram Lang...
@MikeHoneychurch No worries. p.s. I don't agree :) the point is with this approach you have to put Appearance in each Button or create custom function to invoke it.
I have been playing with the "Wolfram Development Platform", that is the web notebook interface, free tier. It would seem it doesn't really run out of computing time any more, at least easily. (It might be it throttles CPU cycles, though.)
Which makes even the free variant surprisingly usable.
Now that I said it, it "exceeded the plan" on one computation. But really, that took minutes.
I'm using google drive. Simple as that. For Windows and Mac there exists a nice apps. On my Mac, I just get a normal local folder which is then automatically synchronized with the cloud and kept up to date.
With drive, I can share files and folders with colleagues and give them read/write access. So for instance, I have a publication folder for one of my projects containing all manuscripts that are important for this. Colleagues can just drop other publications there or get them. This is much better than sending everything with email or skype.
@MikeHoneychurch Yes, I was in the Maldives. That was the baby reef shark that swam around the resort. There was also a baby nurse shark that would occasionally come by. I saw 4 larger reef sharks while I was getting my scuba certification. All were smaller than 2 meters though. I didn't see any as big as in the Belgian guy's photos. He was on a dive focused trip though. Stayed a full week on a traveling yacht and went diving 3 times a day.
He has a video from a night dive they did where dozens of larger nurse sharks swam around them. It looks straight out of National Geographic. I just used a disposable underwater camera. The colors were extremely washed out in many of my photos. Had to play with the levels a lot in GIMP just to make the shark recognizable in mine.
Gave me an appreciation for how much auto focus and exposure adjustment we take for granted even with a camera phone these days.
I was mainly there to try one of those "villa on the water" places. I recommend it.
I think the only thing I got a picture of that the Belgian experienced diver didn't get a better picture of was a moray eel.
Since posting a question I have an almost working answer to it. Should I post this as an answer to the question or edit the question and add the almost answer to ask for help completing it?
I have an accrual calculation that I would like to preserve the units even though they are of the same dimension (e.g. time). For example, I would like the following
Quantity[5, "Days"] / Quantity[52, "Weeks"]
to return in units of days per week instead of a unitless number. Later in the proce...
If I have a list of points A = {1,4,7,2,4,1,2,9} and I want to (list)plot them all at the same x coordinate B = 3, is there an easy way to do that? My issue is actually that for each x coordinate A has a different length, so I can't just make a table. So more generally I want to plot A1 = {1,3,4,2,1} at x = 2, A2 = {1,5,2} at x = 3, and so on.
@JasonB Hm I think my example was confusing, so I'll try to be more clear. I have a function that outputs a list A of variable length, as a function of x. I want to listplot A(x) versus x, without knowing beforehand what the length of A(x) is at each point x
I was trying to write code where all the points on the left side would start from the same location, but forgot to add a constant term to Erf... so it became a bit stranger.
@halirutan This is mostly correct. The reason you wouldn't use pygments for a "new rendering per request" kind of setup on the server is so that you don't waste time and server cycles to do highlighting for every user. Javascript is simpler then because it is done client side, so less load for your server.
On the other hand, if your CMS is smart enough to do a "render once and then serve many until it changes" then you could hook up pygments to it. It would do the rendering the first time and then serve the cached page until your underlying .md files change.
The real question is, if you don't have any dynamic pages (e.g. time/location specific rendering) or things that need a database (users/interactions), then you probably don't need a heavy setup. Jekyll/Octopress/Pelican is probably the best solution. You still write everything in markdown and then the program compiles everything into HTML and CSS files locally. You simply upload these locally rendered files to a web server when you're satisfied and serve those.
The files that are rendered will only change when you make a change to the md, compile it and upload them to your server. This also makes it easy to put everything under version control.
@JasonB Your data has two copies of every point, but I can create the clusters you want with the following: FindClusters[data, 2, Method -> "Agglomerate"]
@R.M. The main reason why I thought it is a good idea to do this was, because with Pico, Grav and friends, you always load the md files to the server and they interpret them on the fly.
I was having a late night session with Pelican yesterday.
It is very nice too. The support for Pygments is shitty, because although it works out of the box, the inclusion of your own set of mma.css was difficult because there is no way to mark the code boxes so that the html-classes language-wl are used.
The only way to solve it was to bring the language-wl css class into the main site template which means that all codeblocks will have this class :(
Hey guys, I'm having trouble understanding something about using Accuracy or PrecisionGoal with NIntegrate, and was wondering if anyone could shed some light on it
I'm integrating a function over two dimensions. The function has a peak that should be easy to integrate for a small area of the integration region, but as soon as you go away from that peak, the magnitude of the function becomes insanely small (10^-8400 size)
Because the peak is so much bigger than the areas around it, when I integrate, I don't really care much about the contribution of the areas around the peak, just the peak and a little area around it
It doesn't really seem to help setting the AccuracyGoal, it still gives me the same slwcon error
So how can I integrate over a region where a lot of the region is insanely small and should basically be ignored?
@YungHummmma It's a probabilistic method so it's not going to give you the same result every time, but it does converge towards the solution so if you have enough samples you should still be able to get the precision that you need. Try increasing MaxPoints and see what happens, other than that I don't know what can be done since this is a very high level implementation of Monte Carlo integration, and the details can't be configured.
@MikeHoneychurch Ah, good to know. I just ran these through auto contrast/color correct in GIMP. I just did a test where I tweaked the shadow, mid, and highlight point of the red, green, and blue channels individually and it might have been worth the extra minute for some of the pictures before I posted them. Oh well. My shark picture was pretty much irrecoverable though.