likely.js
function(row)
	{
		var recommendedItems = new Array();
		var allItems = this.rankAllItems(row);
			
		var rowIndex = row; // assume row is a number
		// If we're using labels we have to look up the row index
		if(this.rowLabels)
		{
			rowIndex = findInArray(this.rowLabels, row);
		}
		
		for(var i=0; i< allItems.length; i++)
		{
			// look up the value in the input
			var colIndex = allItems[i][0];
			// see if we're using column labels or not
			if(this.colLabels) 
			{
				colIndex = findInArray(this.colLabels, allItems[i][0]);
			}
			
			var inputRating = this.input.e(rowIndex+1, colIndex+1);
			
			// if there was no rating its a recommendation so add it
			if(inputRating == 0)
			{
				recommendedItems.push(allItems[i]);
			}
		}
		
		return recommendedItems;
	}
function(row)
	{
		var recommendedItems = new Array();
		var allItems = this.rankAllItems(row);
			
		var rowIndex = row; // assume row is a number
		// If we're using labels we have to look up the row index
		if(this.rowLabels)
		{
			rowIndex = findInArray(this.rowLabels, row);
		}
		
		for(var i=0; i< allItems.length; i++)
		{
			// look up the value in the input
			var colIndex = allItems[i][0];
			// see if we're using column labels or not
			if(this.colLabels) 
			{
				colIndex = findInArray(this.colLabels, allItems[i][0]);
			}
			
			var inputRating = this.input.e(rowIndex+1, colIndex+1);
			
			// if there was no rating its a recommendation so add it
			if(inputRating == 0)
			{
				recommendedItems.push(allItems[i]);
			}
		}
		
		return recommendedItems;
	}
function ( row ) { var recommendedItems = new Array ( ) ; var allItems = this . rankAllItems ( row ) ; var rowIndex = row ; // assume row is a number // If we're using labels we have to look up the row index if ( this . rowLabels ) { rowIndex = findInArray ( this . rowLabels , row ) ; } for ( var i = 0 ; i < allItems . length ; i ++ ) { // look up the value in the input var colIndex = allItems [ i ] [ 0 ] ; // see if we're using column labels or not if ( this . colLabels ) { colIndex = findInArray ( this . colLabels , allItems [ i ] [ 0 ] ) ; } var inputRating = this . input . e ( rowIndex + 1 , colIndex + 1 ) ; // if there was no rating its a recommendation so add it if ( inputRating == 0 ) { recommendedItems . push ( allItems [ i ] ) ; } } return recommendedItems ; }
Returns all items for the given row where there was no input value, sorted by rating.
@param row The row to return values for
@returns Array An array of arrays, each containing two entries. [0] is the index and [1] is the value, sorted by value.
Returns all items for the given row where there was no input value sorted by rating .