Tutorial by Examples: st

The cluster library contains the ruspini data - a standard set of data for illustrating cluster analysis. library(cluster) ## to get the ruspini data plot(ruspini, asp=1, pch=20) ## take a look at the data hclust expects a distance matrix, not the original data. We ...
With hierarchical clustering, outliers often show up as one-point clusters. Generate three Gaussian distributions to illustrate the effect of outliers. set.seed(656) x = c(rnorm(150, 0, 1), rnorm(150,9,1), rnorm(150,4.5,1)) y = c(rnorm(150, 0, 1), rnorm(150,0,1), rnorm(150,5,1)) ...
Arrow functions will throw a TypeError when used with the new keyword. const foo = function () { return 'foo'; } const a = new foo(); const bar = () => { return 'bar'; } const b = new bar(); // -> Uncaught TypeError: bar is not a constructor...
Let df = pd.DataFrame({'col_1':['A','B','A','B','C'], 'col_2':[3,4,3,5,6]}) df # Output: # col_1 col_2 # 0 A 3 # 1 B 4 # 2 A 3 # 3 B 5 # 4 C 6 To get the distinct values in col_1 you can use Series.unique() df['col_1'].unique() # Output: ...
Live upcase server that returns error when input string is longer than 10 characters. Server: const express = require('express'), jsonParser = require('body-parser').json(), app = express(); // Add headers to work with elm-reactor app.use((req, res, next) => { res.setHeader...
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX schema: <http://schema.org/> PREFIX foaf: <http://xmlns.com/foaf/0.1/> WITH <urn:this:database:doc> INSERT { <#relatedTo> a ...
The Vector3 structure contains some static variables that provide commonly used Vector3 values. Most represent a direction, but they can still be used creatively to provide additional functionality. Vector3.zero and Vector3.one Vector3.zero and Vector3.one are typically used in connection to a...
HTTPS (Hypertext Transfer Protocol Secure) is an encrypted version of HTTP protocol, most often used in connection with services where only the sender and receiver must know the message. It's required if you handle credit card information, and will improve your rank on Google. To enable HTTPS you n...
Detailed instructions on getting sonata-admin set up or installed.
Probably the easiest choice, but beware, the version is not always the newest one. Just open up terminal and type (depending on your distribution) in Debian or Ubuntu using apt $> sudo apt install ruby in CentOS, openSUSE or Fedora $> sudo yum install ruby You can use the -y option so...
Probably the easies way to set up ruby on windows is to go to http://rubyinstaller.org/ and from there donwload an executable that you will install. You don't have to set almost anything, but there will be one important window. It will have a check box saying Add ruby executable to your PATH. Confi...
First UC in the example Gems $> gem install nokogiri can have a problem installing gems because we don't have the permissions for it. This can be sorted out in more then just one way. First UC solution a: U can use sudo. This will install the gem for all the users. This method should be frowne...
Add the autodoc module in the extensions list present in the conf.py file at the root of your documentation: extensions = [ 'sphinx.ext.autodoc', ... ]
Detailed instructions on getting uikit set up or installed.
Create an account Go to https://bitbucket.org/ Click on Get Started on the top right corner Enter your email address, and click continue Enter your full name, password and verification code. Then click Continue An email will be sent to you to verify that you created your account After that...
Go to the Bitbucket repository you want to add users to. On the left, go to Settings (the last icon on the bottom left). Select Users and group access. Under Users, start typing the name or email address of the user whom you want to add. Select the privilege you want to grant that user (Read, ...
Detailed instructions on getting arraylist set up or installed.
Detailed instructions on getting Flash set up or installed.
Go to the BigCommerce homepage. Enter a store name in the field labeled Create your store name, then click Start my free trial now. Your store name can be changed at any time after starting your trial. Fill out the new trial store form, then click Create my store now. Once yo...
We now illustrate the functions dbinom,pbinom,qbinom and rbinom defined for Binomial distribution. The dbinom() function gives the probabilities for various values of the binomial variable. Minimally it requires three arguments. The first argument for this function must be a vector of quantiles(the...

Page 287 of 369