Critical Updates!
/inst
folder. Names of these functions are Blend_Moo14
, Blend_Jac17
, Blend_Moo14
, Blend_Bi21
, and Blend_FCMm
.ggplot2
.R
file named Chla_blending.R
. The following blending frameworks will be latterly added in this function.relative
metrics, for instance, some absolute
metrics (like AE
) is okay for that. The change in this version only switch the sign of relative
metrics. Don't worry it too much!prefix
was added. So you can choose which prefix should be set before cluster number, such as "OWT", "Cluster", "Type", or whatever you like.Sampling_by_sort
which returns the index of random samples by the sort.order.value
to Sampling_via_cluster
.CHla_OCx_OLCI
.OC3_OLCI
.Blend_Simith
, Blend_Jac17
, and Blend_Moo14
.cal.metrics
and cal.metrics.vector
add new parameter c.value
which is the compensated value for CAPE and CRPE series metrics. This could be useful when user wants to fix the compensated value.valid.prediciton
has been updated. The new parameter valid.definition
is a list for function Assessment_via_cluster
. See documents for more details.Assessment_via_cluster
for calcluating the CAPE series metrics for RATIO.sort-based
method but with rescale the error metric values to avoid hidden the step values between algorithms. The function is called Scoring_algorithm_sort2
and has been coupled to Scroing_system
series functions.Scoring_system
. Now the score of accuracy and precision are restored in each of list rather the variable with XX_XXX.Scoring_system_bootstrap
, I add a metric statistic for final blending result and candidates.SRF_LIST
.apply_FCM_m
about membership calculation.cal_memb
to calculate distance and membership matrix but without export.Smith18
.SRF_simulate
: add a parameter input_wv_as_column
. Now you can directly simulate your Rrs data.frame with wavelength as column names.apply_to_image
has been set as false color NIR-R-G. And add a 2% linear stretch method to make the image looks more clear.apply_FCM_m
: the calculation of distance for large matrix has been improved.SRF_simulate
: add a parameter verbose
to control the message to console.Fix bugs in plot_spec_group
. Parameter group_num
could be inputted as characters such as "%s %s".
trapz
function. Now better to use the trapz2
function. Much faster!plot_spec_group
which helps to plot spectra lines by means of ggplot2
with facet in different colors.Not sure why is error report from travis so I just comment the travis lines in my readme page.
stand
in function FuzzifierDetermination
, apply_FCM_m
or so has been deprecated now as users reported that it has some ambiguity about the standardized operation in FCMm. As an alternative, I set another parameter called do.stand
. If do.stand == TRUE
then the function will standardize the input data. The stand
parameter is still be supported as before.fDN
, but it has not been exported it. Call FCMm:::fDN
to run it.Fuzzifierdetermination
version Fuzzifierdetermination2
has been created which run much faster than the former one.read_srf_excel
.Scoring_system
is changed from opt_algorithm
to Opt_algorithm
which is used to match with Scoring_system_bootstrap
.TC2_clean
and TC2_turbid
since their outputs could be found in TC2_Liu20
.pos_rgb
to apply_to_image
for definition of RGB channels.Assessment_via_cluster
: update the precision calculation process which now produce NA values for extreme difference between actual and predicted values.Assessment_via_cluster
: for total precision calculation, it is unfair when outliers are included (which may result in extremely precision values). A quantile calculation for limiting the range of values to be calculated.Assessment_via_cluster
: the function will return NA values if all prediction from j algorithm in cluster i are NA values, i.e., the algorithm to be assessed is basically failed.Getting_Asses_result
: add a new parameter replace
to control the function sample
for using replacement or non-replacement.Scoring_system_bootstrap
: add a parameter replace
to control the function sample
.Scoring_system_bootstrap
: add an output Results_of_scoring_system
to restore the all outputs from Scoring_system
.Scoring_system_bootstrap
: fix bug of determining Opt_algorithm
. Now it is determined by maximum of score values.Scoring_system_bootstrap
: add new item Remove_algorithm
which is used for removing algorithms with huge errors when blending.Scoring_system_bootstrap
: update the col plotting.Scoring_system_bootstrap
: add Chla blending process and its corresponding plots.Chla_algorithm_blend
which is used for blending work.apply_FCM_m
: fix the bug of using color_palette
.apply_to_image
: the default setting and output control of parameters is now more reasonable. generate_param_ex
, which is used for generating input for apply_to_image
when user-defined centroids come in.Assessment_via_cluster
when metric values is extremely biased.Sampling_via_cluster
when the input x
has noncontinuous numeric names.Scoring_system
when the Total_score
has full NA values (for some cluster have few observation to calculate metrics.Times
of Scoring_system_bootstrap
must be larger than 1 to avoid errors.Scoring_system_bootstrap
now support algorithms blending by optimized candidates. FCM.new
now support assign cluster names by sorting based on specific constrains (new parameters sort.pos
and sort.decreasing
).color_palette
for spectra plotting functions, i.e., plot_spec
and apply_to_image
. Users could use built-in color palettes or pre-defined color codes.FCMm
, i.e., scales
and farver
.apply_to_image
, FCM.new
, Getting_Asses_results
, Scoring_system
.raster
since it has a conflict with base::aggregate
. Thus, the raster
functions are used by the way importFrom
.Assessment_via_cluster
. The valid percent observation is defined by values greater than zero and is.finite
function.SMAPE
(actually is CMAPE
) and so on.Scoring_system
. More and more details now! Non-related comments were removed.Scoring_system
could be used in the bootstrap way by users, in this version, I add a function Scoring_system_bootstrap
to do that. The default sample time is set as 1000.FCM.new
. Previously, x.stand
is x
when stand = TRUE
which is unfriendly for further usage. Now, both raw and normalized data are calculated in the correct way! The centroids are saved on both raw and normalized scales.HUE
which is the default color palette of the package ggplot2
.rm(list=ls())
in Builtin_centroids.Rmd
.Cluster_new_data.Rmd
.centroids
of function FCM.new
is supported now, which indicates the cluster centroids of your training data set.ifnotstop
for function Assessment_via_cluster
that ZERO values in measured vector will introduce Inf
metric results for cal.metrics
or cal.metrics.vector
.scales::hue_pal
which is the default palette of package ggplot2
.cal.metrics.names
, cal.metircs.vector.names
, Chla_algorithms_name
, and show_sensor_names
now are alias of cal.metrics
, cal.metrics.vector
, run_all_Chla_algorithms
, and SRF_simulate
respectively.on.exit
is used in the right position which is next to oldoptions <- options(scipen=1000)
#247 of Image_application.R
.plot_spec
. For convenience of plotting spectra by groups. Now the facet_wrap
are used rather than restored in a list. Therefore, its argument HABc
is deprecated in this version.GAA_SPM
by Xiaolong Yu is supported in this version.BugReports
and Authors@R
for more meta information. The previous Author
and Maintainer
were deleted.man
were updated including apply_FCM_m
, apply_to_image
, Assessment_via_cluster
, Bloom
, BR_Gil10
, BR_Git11
, C6
, cal.metrics.names
, cal.metrics
, cal.metrics.vector.names
, cal.metrics.vector
, Chla_algorithms_name
, FBA_Le13
, FBA_Yang10
, FCM.new
, FuzzifierDetermination
, generate_param
, Getting_Asses_results
, Gons08
, level_to_variable
, lmodel2_
, NDCI_Mi12
, OC4_OLCI
, OC5_OLCI
, OC6_OLCI
, plot_spec
, plot_spec_from_df
, QAA_v5
, RdYlBu
, read_srf_excel
, run_all_Chla_algorithms
, Sampling_via_cluster
, SCI_Shen10
, Score_algorithm_interval
, Score_algorithm_sort
, Scoring_system
, show_sensor_names
, Spectral
, SRF_simulate
, TBA_Gil10
, TBA_Git11
, TC2
, TC2_clean
, TC2_turbid
, trapz
, and trim_sd
.T
and F
were changed by TRUE
and FALSE
.tools.R
for metrics functions cal.metrics
and cal.metrics.vector
which replace the SAPE
(symmetric) series with the CAPE
(compensated) series.run_all_Chla_algorithms
which could run without constrains for wavelength settings as algorithms with missing wavelength will return NA values alternatively.Assessment
(new), Builtin_centrodis
, and Cluster_new_data
. options()
were removed or used by on.exit()
.# As the version 0.7.4 was submitted to CRAN, I updated DESCRIPTION
file follow the requirement by the CRAN which also includes LICENSE
updated by using uesthis::use_mit_license(name="Shun Bi")
.
Found and fixed an Unicode \u2010
in one Rd files of man which may result in the error check by rhub.
trapz()
.dplyr
as I can use base::sample
as an alternative.Cluster_a_new_dataset_by_FCM
and Usage_of_the_built_in_centroids_by_FCMm
which might provide enough help for users.heatmaply
- was deleted as it would include warning information when library(FCMm)
. Anyway, the functions supported by heatmaply
, i.e., Spectral()
and RdYlBu()
are imported from packages grDevices::colorRampPalette(RColorBrewer::brewer.pal(11, "Spectral")
and ... ,"RdYlBu").do
parameters in next versions.SRF_simulate
fixed.apply_to_image
fixed.FCMm
has been improved by a new proposed scoring rule called sort-based method. OLCI_TH
. apply_FCM_m
as the matrix
may speed up the process rather than the data.frame
(I suppose).Bloom
model which was used to replace C6
model.Sampling_via_cluster
were fixed.QAA_series.R
to add functions TC
and QAA_v5
. The original functions from FCM_m_Chla_estimation
were removed accordingly.Algorithms_assessment.R
to add functions Assessment_via_cluster
, Score_algorithms
, Sampling_via_cluster
, Getting_Asses_result
, and Scoring_system
. The original function Assessment_via_cluster
was removed from Algorithms_assessment.R
.tools.R
. Type-II
regression, namely SMA (Standard Major Axis), to obtain the regression results, such as Intercept
and Slope
. The main reason for that is, inputs of regression (for validation) are obtained without fully quality control (still have uncertainties in each variable). This kind of regression, comparing the Type-I
, cannot be used for prediction (such as using Rrs to predict Chla concentrations), but better to compare two variables on the same scale (units), useful for the error assessment.slope
and intercept
) to tool.R
for hard mode assessment.Assessment_via_cluster
Area
was added in the return of apply_FCM_m
.TC2
fixed.BR_Gil10
and NDCI_Mi12
fixed.FCM_m_Chla_estimation
fixed.UMRPE
function to calculate unbiased error metric.cal.metrics
which remove the double version of .cal.mae
or .bias
. The log10-transformation is now supported by the logical parameter log10
. cal.metrics.vector
and cal.metrics.vector.names
which calculate the validation metrics via pairwise way (results are columns). Assessment_via_cluster
by adding a fuzzy mode to calculate validation metrics via membership values.QAA_v5
in file FCM_m_Chla_estiamtion
.Update the functions and references in file FCM_m_Chla_estiamtion
.
Cluster 1
and Cluster 2
) should have the similar optical attribution. However, the current FCM.new
or FuzzifierDetermiantion
functions return the totally random results. Should be improved later!stand
in many functions (for instance, FCM.new
). The original design of stand
is making sure the input x
has been standardized so that the median-process of clustering should not standardize that. Actually, the parameter could be better understood if named as DoStand
. When DoStand
is True
, it means the input x
have to be standardized in the following process. This change will make numerous source codes different so I will get to do it after other functions are gradually improved.Assessment_via_cluster
to avoid produce NA values.run_all_Chla_algorithms
to obtain the Chla concentration if required Rrs bands are get.@family
tag using package roxygen2
.SRF_simulate
.SRF_simulate
--- wv_as_column
which makes the output as a dataframe with wavelength as column name. Easy to be an input of function apply_FCM_m
or so.Recently, I reread Moore's and Jackson's papers and have some new insights.
Phylogenetic tree is an effective method to post-classification (or post-group) of initial cluster results.
This mode will be added in version 0.5.X or later (2020-01-19).
How to assign new data to an existing clustering?
apply_FCM_m()
with built-in clusters should match OLCI band settings.SRF_simulate()
to simulate the Rrs by spectral response function.Meanwhile, the SRF_list.rda
as a list with SRF data of many sensors should be added.
Need another vignette to illustrate how we can bootstrap the training set for optimizing the cluster number or fuzzifier value.
Now the result of function apply_FCM_m()
is plotted on single picture which is hard to read when the number of spectra is large. So I gonna add a new plot function by using facet
method from ggplot2
.
apply_FCM_m()
is now added as p.group.facet
. You could yourresult$p.group.facet
to obtain the spectra with facet.NEWS.md
file in the top-level fold so that you could see what changes in each version of FCMm
.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.