mirror of https://github.com/davisking/dlib.git
Minor tweaks and fixes.
--HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403626
This commit is contained in:
parent
5dbab3f578
commit
d737ca8a68
|
@ -35,7 +35,7 @@ namespace dlib
|
|||
ekm_stale = true;
|
||||
|
||||
initial_basis_size = 5;
|
||||
basis_size_increment = 5;
|
||||
basis_size_increment = 10;
|
||||
max_basis_size = 300;
|
||||
}
|
||||
|
||||
|
@ -57,7 +57,7 @@ namespace dlib
|
|||
ekm_stale = true;
|
||||
|
||||
initial_basis_size = 5;
|
||||
basis_size_increment = 5;
|
||||
basis_size_increment = 10;
|
||||
max_basis_size = 300;
|
||||
}
|
||||
|
||||
|
@ -181,6 +181,8 @@ namespace dlib
|
|||
);
|
||||
|
||||
max_basis_size = max_basis_size_;
|
||||
if (initial_basis_size > max_basis_size)
|
||||
initial_basis_size = max_basis_size;
|
||||
}
|
||||
|
||||
unsigned long get_initial_basis_size (
|
||||
|
@ -202,6 +204,9 @@ namespace dlib
|
|||
);
|
||||
|
||||
initial_basis_size = initial_basis_size_;
|
||||
|
||||
if (initial_basis_size > max_basis_size)
|
||||
max_basis_size = initial_basis_size;
|
||||
}
|
||||
|
||||
unsigned long get_basis_size_increment (
|
||||
|
|
|
@ -46,7 +46,7 @@ namespace dlib
|
|||
- #get_epsilon() == 0.001
|
||||
- #basis_loaded() == false
|
||||
- #get_initial_basis_size() == 5
|
||||
- #get_basis_size_increment() == 5
|
||||
- #get_basis_size_increment() == 10
|
||||
- #get_max_basis_size() == 300
|
||||
- this object will not be verbose unless be_verbose() is called
|
||||
!*/
|
||||
|
@ -66,7 +66,7 @@ namespace dlib
|
|||
- #get_epsilon() == 0.001
|
||||
- #basis_loaded() == false
|
||||
- #get_initial_basis_size() == 5
|
||||
- #get_basis_size_increment() == 5
|
||||
- #get_basis_size_increment() == 10
|
||||
- #get_max_basis_size() == 300
|
||||
- this object will not be verbose unless be_verbose() is called
|
||||
!*/
|
||||
|
@ -192,7 +192,7 @@ namespace dlib
|
|||
- max_basis_size > 0
|
||||
ensures
|
||||
- #get_max_basis_size() == max_basis_size
|
||||
- if (get_initial_basis_size() < max_basis_size) then
|
||||
- if (get_initial_basis_size() > max_basis_size) then
|
||||
- #get_initial_basis_size() == max_basis_size
|
||||
!*/
|
||||
|
||||
|
|
Loading…
Reference in New Issue