Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
biodivMapR
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Feret Jean-Baptiste
biodivMapR
Commits
7f6c24a1
Commit
7f6c24a1
authored
Feb 10, 2020
by
Jean-Baptiste Feret
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixed Error as output from init_kmeans
parent
8853d6b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
R/Lib_MapSpectralSpecies.R
R/Lib_MapSpectralSpecies.R
+1
-1
No files found.
R/Lib_MapSpectralSpecies.R
View file @
7f6c24a1
...
...
@@ -169,7 +169,7 @@ init_kmeans <- function(dataPCA, Pix_Per_Partition, nb_partitions, nbclusters, n
for
(
i
in
(
1
:
nb_partitions
))
{
Centroids
[[
i
]]
<-
res
[[
i
]]
$
centers
}
my_list
<-
list
(
"Centroids"
=
Centroids
,
"MinVal"
=
m0
,
"MaxVal"
=
M0
,
"Range"
=
d0
)
my_list
<-
list
(
"Centroids"
=
Centroids
,
"MinVal"
=
m0
,
"MaxVal"
=
M0
,
"Range"
=
d0
,
"Error"
=
FALSE
)
return
(
my_list
)
}
}
...
...
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