Day 9 | Linear Regression in grasshopper, K-Means Clustering in grasshopper: Task 1, 2

SAVE

Posted on: July 25th, 2020

Day 9 | Linear Regression in grasshopper, K-Means Clustering in grasshopper: Task 1, 2

Date: 03.07.2020

 

Task 1

Software used: Rhino6, Grasshopper, Lunchbox

Tools Used: Points, Series, Point, Deconstruct, Linear Regression, Construct Point, Point, Interpolate, Non Linear Regression, Divide Curve, Jitter, Random, Vector XYZ, Move, List item.

The session was to understand the application of regression in grasshopper. It was done by generating points from a curve and generating curves from points in grasshopper using linear regression, non-linear regression and multivariate linear regression.

Points created in rhino assigned in grasshopper.

 

Curve generated from the points when done in linear regression.

 

Curve generated from the points when done in non-linear regression.

 

Redefining the generated curve.

 

Points being generated on line segment.

 

The generated points are jittered randomly around the source curve.

 

Points generated using Multivariate Linear Regression.

 

Task 2

Software used: Rhino6, Grasshopper, Lunchbox, Ladybug

Tools Used: Surface, Quad Panel, Area, Extrude, Gaussian Mixture, Bounds, Length, K-Means Clustering, Deconstruct Domain, Panel, Gradient, Move, Brep, Brep Join, Cap Hole, File Path, Boolean Toggle, GenCumulativeSkyMtx, Analysis Period, SelectSkyMtx, Radiation Analysis, Mass Addition.

This exercise was done to understand the K-Means Clustering method used for radiation analysis. For this a doubly curved surface was created in rhino and assigned in grasshopper. The surface was given thickness and divided into smaller units. The cells were then clustered through K-Mean clustering method. Further the radiation analysis was done on these cells.

Doubly curved surface created in rhino assigned in grasshopper.

 

Surface being divided in quad panels.

 

Centre points generated for each quad panel.

 

Redefining the surface by giving thickness to it.

 

Radiation analysis of surface using Ladybug plugin.

 

Read More: