Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
0a9411bf
Commit
0a9411bf
authored
Mar 02, 2013
by
Davis King
Browse files
Added to_std_vector() to the random_subset_selector.
parent
6d4f5b49
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
dlib/statistics/random_subset_selector.h
dlib/statistics/random_subset_selector.h
+3
-0
dlib/statistics/random_subset_selector_abstract.h
dlib/statistics/random_subset_selector_abstract.h
+12
-0
No files found.
dlib/statistics/random_subset_selector.h
View file @
0a9411bf
...
...
@@ -64,6 +64,9 @@ namespace dlib
update_next_add_accepts
();
}
const
std
::
vector
<
T
>&
to_std_vector
(
)
const
{
return
items
;
}
unsigned
long
size
(
)
const
{
...
...
dlib/statistics/random_subset_selector_abstract.h
View file @
0a9411bf
...
...
@@ -217,6 +217,18 @@ namespace dlib
this container
!*/
const
std
::
vector
<
T
>&
to_std_vector
(
)
const
;
/*!
ensures
- returns a const reference to the underlying std::vector<T> that contains
all elements in this object. That is, this function returns a vector, V,
which has the following properties:
- V.size() == this->size()
- V.begin() == this->begin()
- V.end() == this->end()
!*/
void
swap
(
random_subset_selector
&
item
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment