# forestApply

## PURPOSE

Apply learned forest classifier.

## SYNOPSIS

function [hs,ps] = forestApply( data, forest, maxDepth, minCount, best )

## DESCRIPTION

     Apply learned forest classifier.

     USAGE
      [hs,ps] = forestApply( data, forest, [maxDepth], [minCount], [best] )

     INPUTS
      data     - [NxF] N length F feature vectors
      forest   - learned forest classification model
      maxDepth - [] maximum depth of tree
      minCount - [] minimum number of data points to allow split
      best     - [0] if true use single best prediction per tree

     OUTPUTS
      hs       - [Nx1] predicted output labels
      ps       - [NxH] predicted output label probabilities

     EXAMPLE

     See also forestTrain

     Piotr's Image&Video Toolbox      Version 3.24
     Copyright 2013 Piotr Dollar.  [pdollar-at-caltech.edu]
     Please email me if you find bugs, or have suggestions or questions!
     Licensed under the Simplified BSD License [see external/bsd.txt]