User Profile

Collapse

Profile Sidebar

Collapse
pyrokat
pyrokat
Last Activity: Jan 19 '10, 06:36 PM
Joined: Jan 12 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • pyrokat
    replied to vertical histogram in javascript
    it doesnt have to be ascending though and I am not allowed to use join method or any method.

    i am having problems in creating the two dimensional array right now to create the histogram.

    this is what i have so far

    Code:
    
    function createTwoDimArray(maxRows, maxCols) {
         var newArray = new Array(maxRows);
         for (var row=0; row<maxRows; row++) {
                   newArray[row]
    ...
    See more | Go to post

    Leave a comment:


  • pyrokat
    replied to vertical histogram in javascript
    given that the array would be

    [2,2,3,4,5,5,6]

    the output would be

    **
    **
    ***
    ****
    *****
    *****
    ******

    but vertical.. once vertical, reading from left to right there is a positive slope
    See more | Go to post

    Leave a comment:


  • pyrokat
    replied to vertical histogram in javascript
    I don't know how/what to do next.
    for example: given 5 entries with the following data points [2,3, 4, 5, 6] we are suppose to make a vertical histogram using functions made [maximum value of array and createTwoDimens ionalArray]
    See more | Go to post

    Leave a comment:


  • pyrokat
    started a topic vertical histogram in javascript

    vertical histogram in javascript

    All the information is asked for. so the number of values is unknown, the data points are unknown and so forth. this is what i have thus far...




    Code:
    var array = userValues;
    maximumValue(array);
    var maxRows = max;
    var maxCols = valuesToPlot.length;
    var secondArray = createTwoDimArray(maxRows, maxCols);

    the number...
    See more | Go to post

  • How to find maximum value among X number of points?

    This is all i have right now and i cant figure out how to go further..

    Code:
         var numEntries;
                        var max;
                        var pt;                                       
                        
                        numEntries = Number(prompt("Number of entries to process?"));
                          
                        do {
    ...
    See more | Go to post
    Last edited by Dormilich; Jan 12 '10, 05:07 AM. Reason: Please use [code] tags when posting code
No activity results to display
Show More
Working...