-
Notifications
You must be signed in to change notification settings - Fork 2
/
ThickRestarter.m
25 lines (23 loc) · 839 Bytes
/
ThickRestarter.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
%%=======================================================================
%% Copyright 2015 United States Government as represented by Army
%% Research Laboratory. No copyright is claimed in the United States
%% under Title 17, U.S.Code. All Other Rights Reserved.
%% Authors: Alexander Breuer
%%
%% Distributed under the NASA Open Source Agreement v. 1.3; see
%% accompanying file LICENSE.txt
%%=======================================================================
classdef ThickRestarter < handle
properties
dim, wanted
end
methods
function self = ThickRestarter( wanted, dim )
self.wanted = wanted;
self.dim = dim;
end
function roots = get( self, theta, nconv, varargin )
roots = theta(1:self.dim - max(self.wanted,floor((3*self.dim + 2*nconv)/5)));
end
end
end