ooDACE toolbox  1.4
 All Classes Files Functions Variables Pages
Functions
makeEvalGrid.m File Reference

Functions

function makeEvalGrid (var gridpoints, var gridsize)
 Low-level procedure, makes a `prod(gridsize)' by `length(gridsize)' array, where each row is a different vector, where the i'th element is a number out of `gridpoints{i}'.
 

Detailed Description

Authors
Ivo Couckuyt
Version
1.4 ($Revision$)
Date
$LastChangedDate$
Copyright 2010-2013

This file is part of the ooDACE toolbox and you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Free Software Foundation. With the additional provision that a commercial license must be purchased if the ooDACE toolbox is used, modified, or extended in a commercial setting. For details see the included LICENSE.txt file. When referring to the ooDACE toolbox please make reference to the corresponding publications:

Contact : ivo.c.nosp@m.ouck.nosp@m.uyt@u.nosp@m.gent.nosp@m..be - http://sumo.intec.ugent.be/?q=ooDACE Signature evalgrid = makeEvalGrid( gridpoints, gridsize )

Function Documentation

function makeEvalGrid ( var  gridpoints,
var  gridsize 
)

Low-level procedure, makes a `prod(gridsize)' by `length(gridsize)' array, where each row is a different vector, where the i'th element is a number out of `gridpoints{i}'.

The `gridsize' parameter may be omitted, in that case it's generated from `gridpoints'. This function produces grids in the expected order, which is now also used for gridded dataset files. Use this instead of makeEvalGridInverted if possible.

Example: makeEvalGrid( { [-1, .5], [-1 0 1], [.2 .3] }, [2 3 2] ) ans = -1.0000 -1.0000 0.2000 -1.0000 -1.0000 0.3000 -1.0000 0.0000 0.2000 -1.0000 0.0000 0.3000 -1.0000 1.0000 0.2000 -1.0000 1.0000 0.3000 0.5000 -1.0000 0.2000 0.5000 -1.0000 0.3000 0.5000 0.0000 0.2000 0.5000 0.0000 0.3000 0.5000 1.0000 0.2000 0.5000 1.0000 0.3000