News for hackers. Stuff that matters.

ricsca

Re:Show HN: Textures.js, SVG Patterns for Data Visualization on Thursday March 19, 2015 @10:50AM (#9232300)
It should be

    var t = texture().lines().stroke('red')
    if(this.button.on) t.heavier()
Re:Show HN: Textures.js, SVG Patterns for Data Visualization on Wednesday March 18, 2015 @12:03PM (#9226431)
Wow! Thanks.
Re:Show HN: Textures.js, SVG Patterns for Data Visualization on Wednesday March 18, 2015 @10:45AM (#9225815)
Interesting point of view. Choices of style apart, there are situations where textures are useful. Like for example the case faced by swayvil (see the comment), or when you need b/w printable images. Another good reference is "Semiology of Graphics" of Jacques Bertin, he has a good opinion about textures.
Re:Show HN: Textures.js, SVG Patterns for Data Visualization on Wednesday March 18, 2015 @10:36AM (#9225744)
:D thanks! Very good point.
Re:Show HN: Textures.js, SVG Patterns for Data Visualization on Wednesday March 18, 2015 @10:23AM (#9225647)
Interesting point. I simply relied o this post of Mike Bostock http://bost.ocks.org/mike/chart/.
Re:Show HN: Textures.js, SVG Patterns for Data Visualization on Wednesday March 18, 2015 @09:55AM (#9225444)
Many thanks for the good words! I am happy you like it.
Re:Show HN: Textures.js, SVG Patterns for Data Visualization on Wednesday March 18, 2015 @09:54AM (#9225430)
I did it with d3.js and topojson, then I used the resulting svg image on the website. You can find the code here https://github.com/riccardoscalco/textures/blob/gh-pages/map...
Re:Show HN: Textures.js, SVG Patterns for Data Visualization on Wednesday March 18, 2015 @09:19AM (#9225198)
Textures and colors can be combined, for example if you need to select according two different group of categories/variables.
Pykov implements the computation of some of the most common quantities related to discrete-time finite regular Markov Chains, namely: steady state, mean first passage times and absorbing times. The calculation are performed by means of the analytic formulas described on Kemeny&Snell, and the steady state is derived with the inverse iteration method. If you are interested on random walkers, pykov offers a handy way to generate them and evaluate their probability. Sorry, I do not know PyMC well enough to say if the above quantities can be calculated also with it.
I coded this library during my PhD, where I applied Markov Chains to the study of protein folding dynamics. I am quite confident with it, but as far as I know few others used it. At that time, I used pykov with networks of around 100k nodes and 500k links. Only recently I replaced pysparse with scipy sparse solvers. Entire methods are comment out because they are heuristics that do not belong to the standard Markov Theory, and they can be removed.
Agree. Naming is difficult and here maybe I did a wrong choice. Anyway, pykov.Vector class inherit from dict, which is not ordered, so mutating in place cannot be done. The sort() method returns a list, which makes the name "sort" even more problematic. What do you suggest? (OrderedDict?)
All good points, thanks for pointing them out. I'll consider each one carefully.