Skip to content
Browse files

added some definitions.

  • Loading branch information...
1 parent 0ce4953 commit bbebfba65256e545ec6553dc84c78411f94d905f @rishighan committed May 24, 2012
Showing with 14 additions and 1 deletion.
  1. +1 −1 app/views/pages/index.html.erb
  2. +13 −0 config/initializers/echonest.rb
View
2 app/views/pages/index.html.erb
@@ -25,7 +25,7 @@
<h4><%= artist["name"]%> </h4>
Hotness: <%= hotness URI::escape(artist["name"])%>
Familiarity: <%= familiarity URI::escape(artist["name"])%>
- <br/>
+ <br/> <br/>
<%end%>
<%end%>
View
13 config/initializers/echonest.rb
@@ -7,6 +7,19 @@
# some basic ECHONEST API hooks
# Please give credit if you are using this.
+# From Wikipedia
+
+# In statistics, dependence refers to any statistical relationship between two random variables or two sets of data.
+# Correlation refers to any of a broad class of statistical relationships involving dependence.
+
+# Formally, dependence refers to any situation in which random variables do not satisfy a mathematical
+# condition of probabilistic independence. In loose usage, correlation can refer to any departure of two or
+# more random variables from independence, but technically it refers to any of several more specialized types
+# of relationship between mean values. There are several correlation coefficients, often denoted ρ or r, measuring
+# the degree of correlation. The most common of these is the Pearson correlation coefficient, which is sensitive only
+# to a linear relationship between two variables (which may exist even if one is a nonlinear function of the other).
+# Other correlation coefficients have been developed to be more robust than the Pearson correlation – that is,
+# more sensitive to nonlinear relationships.
def parseURL url
purl = URI.parse(url) # parse the URL

0 comments on commit bbebfba

Please sign in to comment.
Something went wrong with that request. Please try again.