intersect_all_continuum_sphinx#

intersect_all_continuum_sphinx(names, output_file, master_spectrum=None, copies_master=0, fraction=0.2, threshold=0.66, tolerance=0.5)[source]#

Search for the intersection of all the anchors points in a list of filename and update the selection of anchor points in the same files.

For each anchor point the fraction of the closest distance to a neighborhood is used. Anchor point under the threshold are removed (1 = most deleted, 0 = most kept). Possible to use multiprocessing with nthreads cpu. If you want to fix the anchors points, enter a master spectrum path and the number of copies you want of it.

Parameters:
  • names (Sequence[Path]) – List of RASSINE files.

  • output_file (Path) – Master tool file to write

  • master_spectrum (Optional[Path]) – Name of the RASSINE master spectrum file.

  • copies_master (int) –

    Number of copies of the master, to weigh more the master data during the analysis.

    If 0 value is specified, copies_master is set to 2*N with N the number of RASSINE files.

  • fraction (float) – Parameter of the model between 0 and 1

  • treshold – Parameter of the model between 0 and 1

  • tolerance (float) – Parameter of the model between 0 and 1