Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
0a9411bf
Commit
0a9411bf
authored
Mar 02, 2013
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added to_std_vector() to the random_subset_selector.
parent
6d4f5b49
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
random_subset_selector.h
dlib/statistics/random_subset_selector.h
+3
-0
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