Software Listing of Author : "Tyler London"
- k-means algorithm
- License: Freeware
- Price: 0.00


[counter] = kMeans(numPoints, numClusters, shape, drawOn, showOn) This function takes as inputs: numPoints: the number of random points to cluster; numClusters: the number of clusters to group the points into; shape: a string 'square', 'circle', or 'tube' to carry out the kMeans process in; drawOn: a 1 or 0 indicating whether or not to show the points dynamically joining different clusters (not suitable for more than 500 points) ; showOn: a 1 or 0 indicating whether or not to show the update in clusters as a new figure after each iteration Given the appropriate parameters kMeans first places k = numClusters random points in the given SHAPE and then carries out the kMeans algorithm. That is, we first assign each of the N = numPoints to the initial mean which is closest (in the standard Euclidean sense), then compute the...
- Publisher: Tyler London
- Date Released: 11-03-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Spiderweb Plot for Interval Maps
- License: Shareware
- Price:


This function can be used to generate spiderweb plots for continuous maps of the interval [0 1] into itself. This type of graph is used to visualize successive iterations of an interval map f. Given an initial point x0, the segments that make up the diagram connect the points (x0, f(x0)), (f(x0), f(f(x0))), (f(f(x0)), f(f(f(x0)))), ... The arguments for SPIDERWEB are the following: 1. f - a continuous map of the interval [0 1] into itself. Maps that do not take the interval [0 1] back into itself may not produce the correct spiderweb plot. 2. x0 - the initial point. 3. N - the number of iterations. SPIDERWEB computes the forward trajectory of length N for the point x0. These points are stored in the vector xIm = X-IMAGES, so that xIm = [ x0 f(x0) ... (f^N)(x0) ] Examples and sample function calls: The following examples appear in...
- Publisher: Tyler London
- Date Released: 21-05-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts

