Showing posts with label Define 4 clusters of input data. Show all posts
Showing posts with label Define 4 clusters of input data. Show all posts

Wednesday, October 31, 2018

Define 4 clusters of input data

Define 4 clusters of input data

K = 200; % offset of classes q = 1.1; % define 4 clusters of input data P = [rand(1,K)-q rand(1,K)+q rand(1,K)+q rand(1,K)-q; rand(1,K)+q rand(1,K)+q rand(1,K)-q rand(1,K)-q]; % plot clusters plot(P(1,:),P(2,:),'g.') hold on grid on
https://www.r-languagestatistics.co

Black-Scholes formula-R

 Black-Scholes formula-R > BlackScholes <- function(TypeFlag = c("c", "p"), S, X, Time, r, b, sigma) { TypeFla...