diff --git a/js/morpheus-latest.min.js b/js/morpheus-latest.min.js index e6c7eb0a05f767d4f3a77def163b85822bec7d7c..5b7297c16e352eee4c96f9e3bae24426637d6af6 100644 --- a/js/morpheus-latest.min.js +++ b/js/morpheus-latest.min.js @@ -6,13 +6,13 @@ return this.indices.length},get:function(index){var v=this.model.get(index);if(v },setHoverRowIndex:function(index){this.hoverRowIndex=index},getRowColorModel:function(){return this.colorModel},getRowShapeModel:function(){return this.shapeModel},getColumnShapeModel:function(){return this.shapeModel},getGroupRows:function(){return this.groups},getGroupColumns:function(){return this.groups},getFullDataset:function(){return this.originalDataset},getColumnSelectionModel:function(){return this.selectionModel},getRowSelectionModel:function(){return this.selectionModel},getElementSelectionModel:function(){return this.elementSelectionModel},getFilteredSortedRowIndices:function(){return this.indexMapper.convertToView()},getFilteredSortedColumnIndices:function(){return this.indexMapper.convertToView()},setFullDataset:function(dataset,notify){this.originalDataset=dataset,this.indexMapper.setFilter(this.indexMapper.getFilter()),this.selectionModel.clear(),this.elementSelectionModel.clear(),notify&&this.trigger(morpheus.Project.Events.DATASET_CHANGED)},setGroupRows:function(keys,notify){this.groups=keys,notify&&(this.trigger(morpheus.Project.Events.ROW_GROUP_BY_CHANGED),this.trigger(morpheus.Project.Events.COLUMN_GROUP_BY_CHANGED))},setGroupColumns:function(keys,notify){this.groups=keys,notify&&(this.trigger(morpheus.Project.Events.ROW_GROUP_BY_CHANGED),this.trigger(morpheus.Project.Events.COLUMN_GROUP_BY_CHANGED))},setRowFilter:function(filter,notify){this._saveSelection(!1),this.indexMapper.setFilter(filter),this._restoreSelection(!1),notify&&this.trigger(morpheus.Project.Events.ROW_FILTER_CHANGED)},getRowFilter:function(){return this.indexMapper.getFilter()},getColumnFilter:function(){return this.indexMapper.getFilter()},setColumnFilter:function(filter,notify){this._saveSelection(!0),this.indexMapper.setFilter(filter),this._restoreSelection(!0),notify&&this.trigger(morpheus.Project.Events.COLUMN_FILTER_CHANGED)},getColumnColorModel:function(){return this.colorModel},getSortedFilteredDataset:function(){return morpheus.DatasetUtil.slicedView(this.getFullDataset(),this.indexMapper.convertToView(),this.indexMapper.convertToView())},getSelectedDataset:function(options){options=$.extend({},{selectedRows:!0,selectedColumns:!0,emptyToAll:!0},options);var dataset=this.getSortedFilteredDataset(),rows=null;options.selectedRows&&(rows=this.selectionModel.getViewIndices().values().sort(function(a,b){return a===b?0:aMath.abs(max)&&(max=p)}return max};return f.toString=function(){for(var s=["Maximum of "],i=0,length=percentiles.length;i0&&length>2&&s.push(", "),i===length-1&&s.push(2==length?" and ":"and "),s.push(percentiles[i]);return s.push(" percentiles"),s.join("")},f},morpheus.Mean=function(vector){for(var sum=0,count=0,i=0,length=vector.size();i0;i--){var bigPValue=nominalPValues[pValueIndices[i]],smallPValue=nominalPValues[pValueIndices[i-1]];bigPValue==smallPValue&&(ranks[pValueIndices[i-1]]=ranks[pValueIndices[i]])}for(var i=0;i=lowerOutlier&&(lowerAdjacentValue=Math.min(lowerAdjacentValue,value)),sum+=value}var mean=sum/values.length;return lowerAdjacentValue>q1&&(lowerAdjacentValue=q1),upperAdjacentValue1&&(found=!0)}}if(found)for(var i=0,nrows=newValues.length;in)return!0}return!1},morpheus.VectorUtil.createSpanMap=function(vector){for(var previous=vector.getValue(0),startIndexToEndIndex=new morpheus.Map,start=0,i=1,nrows=vector.size();imax?value:max)}}else for(var i=0,size=vector.size();imax?value:max)}return{min:min,max:max}},morpheus.VectorUtil.getFirstNonNull=function(vector){for(var i=0,length=vector.size();i