Caleydo / caleydo.github.io

Caleydo Website
https://caleydo.org
4 stars 1 forks source link

Data Structures Tutorial: Explain source code better #163

Closed thinkh closed 7 years ago

thinkh commented 8 years ago

Open Data Structures Tutorial

Observed behavior:

The source code is not really self-explained and hard to understand if you have less programming knowledge and/or not familiar with Caleydo.

A few examples:

  var sequence = Array.from(Array(200).keys())
      .map(function(x){return (x-100)/50;});

or

      sequence.map(function (m) {
        return sequence.map(function (n) {
          // Gentle gradient across the whole thing...
          // with ripples in the middle.
          return m*n + Math.sin(1/(m*m+n*n));
        })
      }),
      sequence, // row_ids
      sequence // col_ids

What does matrix.view(parse('(0:200:5),(0:200:5)')), do?

Expected behavior:

Please add more comments, either as commend in the source code (prefered) or as text in the Markdown file.

mccalluc commented 7 years ago

replaced.