Icon

Exercise1

<p><strong>Chapter 7/Exercise 1</strong></p><p>In this exercise, we generate a dataset with 6 clusters over 2 coordinates (x,y). We then want to apply the following data transformation to each the different clusters using a <em>Group Loop</em>:</p><ul><li><p>cluster 0: x=x</p></li><li><p>cluster 1: x=sqrt(x)</p></li><li><p>cluster 2: x=x+iter#</p></li><li><p>cluster 3: x=x*iter#</p></li><li><p>cluster 4: x=y</p></li><li><p>cluster 5: x=x*x</p></li></ul><p>Lastly, we plot the processed data in a <em>Scatter Plot</em>. Compare it with the first <em>Scatter Plot</em> to see the difference.</p>

Workflow: Chapter 7/Exercise 1


In this exercise, we generate a dataset with 6 clusters over 2 coordinates (x,y). We then want to apply the following data transformation to each the different clusters using a Group Loop:

  • cluster 0: x=x

  • cluster 1: x=sqrt(x)

  • cluster 2: x=x+iter#

  • cluster 3: x=x*iter#

  • cluster 4: x=y

  • cluster 5: x=x*x

Lastly, we plot the processed data in a Scatter Plot. Compare it with the first Scatter Plot to see the difference.

Generating data

6 clusters, 2 coordinates (Universe_0_0, Universe_0_1)

Visualizing data

Loop body

Visualizing data

Check data range for each group of data (Iter #)

Group byCluster Membership
Group Loop Start
Collect and concatenate data of all iterations
Loop End
6 clusters2 coordinates
Data Generator
Visualize x-shifted data
Scatter Plot
Process databy iteration count
Expression
Color by clusters
Color Manager
Visualize original data
Scatter Plot

Nodes

Extensions

Links