Saturday, April 19, 2014

Polynomial regression - Rosetta Code

Regression analysis - Wikipedia, the free encyclopedia

The term "regression" was coined by Francis Galton in the nineteenth century to describe a biological phenomenon. The phenomenon was that the heights of descendants of tall ancestors tend to regress down towards a normal average (a phenomenon also known as regression toward the mean)

Polynomial regression - Rosetta Code:

Find an approximating polynom of known degree for a given data.

Example: For input data:
x = {0,  1,  2,  3,  4,  5,  6,   7,   8,   9,   10};
y = {1,  6,  17, 34, 57, 86, 121, 162, 209, 262, 321};
The approximating polynom is:
3 x2 + 2 x + 1

Rosetta Code is a programming chrestomathy site. The idea is to present solutions to the same task in as many different languages as possible, to demonstrate how languages are similar and different, and to aid a person with a grounding in one approach to a problem in learning another. Rosetta Code currently has 730 tasks, 125 draft tasks, and is aware of 533 languages, though we do not (and cannot) have solutions to every task in every language.



FTTT is a service that lets you create powerful connections with one simple statement: "if this then that"If this, then that. We call 'this' the Trigger, and 'that' the Action. Together, it is a Recipe.

IFTTT is pronounced like “gift” without the “g.”


  • Channels 
    are the basic building blocks of IFTTT. Each Channel has its own Triggers and Actions, like email, facebook, weather...
  • TriggersThe this part of a Recipe is a Trigger. Some example Triggers are “I’m tagged in a photo on Facebook” or “I check in on Foursquare.”
  • IngredientsPieces of data from a Trigger are called Ingredients. For example, the Ingredients of an Email Trigger could be: subject, body, attachment, received date, and the sender’s address.
  • Recipes
    • Personal Recipes are a combination of a Trigger and an Action from your active Channels.
    • Shared Recipes are useful templates shared by the IFTTT community. 
    • Most Personal Recipes check for new Trigger data every 15 minutes, some are even faster.
    • Personal Recipes can be turned on and off.

"SmartThings lets you control lights, electronics, and switches from anywhere... and more. 

SmartThings offers you security, peace of mind, and limitless possibilities by being compatabile with hundreds of existing Zigbee, Z-Wave, and popular smart devices. Once you have the Hub and free mobile app, you can control and monitor your entire connected home from your smartphone."

Official SmartThings Shop - Buy Starter Kits, Hubs, Solutions, and popular smart home products


Some things About SmartThings | Scratchable Devices Blog
by Dr Michael L. Littman