getTrainingData: Read and process seed sample (with optional complementary...

Description Usage Arguments Details Value

Description

Read and process seed sample (with optional complementary waste sample)

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
getTrainingData(
  main_file,
  profile_file,
  datadir = "",
  main_waste_file = NULL,
  profile_waste_file = NULL,
  calibration = c(38.325, 0.185),
  clean = FALSE,
  cleanguess = 200
)

Arguments

main_file

Name of the file with measurements of extinction and time of flight.

profile_file

Name of the file with features extracted from particle profiles, as generated by function processFiles().

datadir

Directory where the files are located (by default, the current working directory).

main_waste_file

(Optional) Name of the file with measurements of extinction and time of flight for non-seed particles.

profile_waste_file

(Optional) Name of the file with profile features for non-seed particles.

calibration

A vector with intercept and slope of the linear calibration between time of flight and particle size.

clean

(Optional) Whether to use clustering to remove dust particles from the dataset (default: FALSE).

cleanguess

(Optional) Initial guess for value for Size to separate seeds from dust particles

Details

The column Class indicates whether the particle is a seed (S) or a non-seed/waste material (W).

Value

A tibble with all the features that can be used for training or testing classification algorithms.


AleMorales/SeedSorter documentation built on Feb. 12, 2020, 4:13 a.m.