Cloud Foundry: Design and Architecture
Derek Collison discusses the goals, the design premises and patterns employed in creating the architecture of Cloud Foundry, VMware’s open source PaaS, unveiling internal architectural details.
The content has been bookmarked!
There was an error bookmarking this content! Please retry.
Posted by Abel Avram on Aug 18, 2011
jStat is a JavaScript library providing developers with statistical functions and the ability to plot graphics from within the browser. jStat can be used for statistical operations on all browsers without any external dependencies, and it requires jQuery and the flot plug-in for plotting data. jStat is a partial port of R - an open source statistical language and environment-, implementing a subset of R’s functionality.
InfoQ has talked to Matthew Williams, a Research Fellow at Aston University, Birmingham, England, and member of the jStat team, in order to find out what functionality does jStat provide:
The core of jStat is based on vectors and matrices (much like MatLab). The base unit is a matrix and can be constructed using the jStat function (j$):
§ var matrix = j$([[1,2,3],[4,5,6],[7,8,9]])
Each matrix then has a host of methods available to you including, addition, division, multiplication, subtraction, diagonal, anti-diagonal, transpose, dot product, normalize, min, max, mean, median, etc.
We then have a host of probability distributions including: normal, log-normal, beta, gamma, weibull, Cauchy, chi-square, exponential, pareto, student T, etc. Each probability distribution can evaluate the PDF, CDF and inverse CDF at a given x value (or a matrix of values). You can also calculate the mean, median, mode, standard deviation and variance wherever possible. Also, most distributions are capable of producing random samples.
jStat also includes a host of ‘special’ functions including: gamma function, inverse gamma function, beta function, inverse beta function, incomplete beta function, log-gamma function, inverse incomplete gamma function, error function, complimentary error function, inverse complimentary error function. It also includes a couple of additional random number generators: randn (randomly sample from the normal distribution) and randg (randomly sample from the gamma distribution).
Tushar Gupta, a student working at Aston over the summer, has added a number of other functions, such as “optimization using Nelder-Mead and non-linear conjugate gradient algorithms, further linear algebra functions including integration, differentiation and interpolation.”
jStat is a relatively young project, and what’s missing the most is rich plotting functionality, which is to be added in the future. Without having a clear roadmap ahead, the jStat team has plans for its future, including a plug-in architecture that would allow it to be extended by anyone interested in the project, said Williams:
We have lots of plans for the future of jStat. We are working on a regression package that will offer simple linear regression through to some more complex Bayesian approaches. We are looking at providing several more complex plots, including the ability to plot multivariate variables (3D). Also, a further ambition is to create a fully interactive jStat environment.
Much like cloud9 is an online IDE, jStat will hopefully provide an online Matlab/R environment with the ability to keep track of variables, interactive plots and the ability to save and resume your work.
We are also hoping to create a plugin architecture so that anyone can create plugins for jStat and extend the functionality further. I think with a fully-featured plugin system there is huge potential for jStat.
As for an official roadmap, it is difficult at this stage. We are currently busy refactoring and documenting the changes we have made, once that is done we will update the jStat website and provide tutorials. This will hopefully be achieved within the next couple of months and will represent a major step forwards. Once we reach this milestone we will be better placed to plan the future of jStat.
The latest version of the code can be found on Github/jstat, licensed under a permissive MIT license.
For a more robust and mature statistical solution, one can use R, a complete framework with necessary tools to perform all sorts of statistical computations and plotting on Unix, Mac and Windows. But R is best fit for writing statistical native applications, while jStat is suitable for light cross-browser web applications that do not need all the functionality and heaviness of a framework like R. (The minified version of jStat has 40KB, while the Windows installer for R has 39 MB.)
Taming HTML5 and JS: High Performance Mobile, WebKit, FireFox Dev Tools @QCon New York
Tools to unit test your JavaScript
Building HTML5 Apps in Hours, Not Days
The WebSphere Liberty Profile for Developers: An Introduction
Derek Collison discusses the goals, the design premises and patterns employed in creating the architecture of Cloud Foundry, VMware’s open source PaaS, unveiling internal architectural details.
Andrew Watson talks about the work of the OMG, where CORBA is alive and well (hint: in your car), UML and UML Profiles vs. custom Modeling languages, DDS and other middleware, and much more.
Sohil Shah discusses creating iPhone and Android enterprise mobile applications based on cloud services using the open source platform OpenMobster.
Paul Sanford presents the transformations supported by data throughout its life cycle, and how that can be better done with Splunk, an engine for monitoring and analyzing machine-generated data.
A common “best practice” for unit tests is to only write a one assertion in each test. I intend to question this advice by showing that multiple assertions per test are both necessary and beneficial.
John Rauser presents the architectural and technological evolution of Amazon retail websites starting with 1994 and ending with adopting Amazon Web Services.
Michael Stal discusses system architecture quality, how to avoid architectural erosion, how to deal with refactoring, and design principles for architecture evolution.
Every developer has had to integrate with another system, API or component. Tis article provides strategies to handle the change and for he separating system boundaries.
No comments
Watch Thread Reply