function [weight_required] = set_model_weight(iterations_ratio, weight_automation_type)
% SET_MODEL_WEIGHT: Set model weight for the appearance model
%
%    GENERAL
%
%      [weight_required] = set_model_weight(iterations_ratio, weight_automation_ty
%
%    INPUT/S
%
%      -
%
%    OUTPUT/S
%
%      -
%
%    PENDING WORK
%
%      -
%
%    KNOWN BUG/S
%
%      -None.
%
%    COMMENT/S
%
%      -
%
%    RELATED FUNCTION/S
%
%      
%
%    ABOUT
%
%      -Created:     May 21st, 2004
%      -Last update: May 21st, 2004
%      -Revision:    0.0.1
%      -Author:      R. S. Schestowitz, University of Manchester
% ==============================================================


switch weight_automation_type,
    
  case 'default'
	if (iterations_ratio > 9),
     weight_required = 0;
	elseif (iterations_ratio > 8),
     weight_required = 0.01; 
	elseif (iterations_ratio > 6),
     weight_required = 0.05;           
	elseif (iterations_ratio > 4),
     weight_required = 0.08;             
	elseif (iterations_ratio > 3),
     weight_required = 0.1;                         
	elseif (iterations_ratio > 2),
     weight_required = 0.15;
	else
     weight_required = 0.2;
	end
  case 'smart'
    if (iterations_ratio > 9),
     weight_required = 0;
	elseif (iterations_ratio > 8),
     weight_required = 0; 
	elseif (iterations_ratio > 6),
     weight_required = 0;           
	elseif (iterations_ratio > 4),
     weight_required = 0.01;             
	elseif (iterations_ratio > 3),
     weight_required = 0.02;                         
	elseif (iterations_ratio > 2),
     weight_required = 0.03;
	else
     weight_required = 0.04;
	end
end
