1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
//! Vibrational-spectrum result types and shared input validation.
//!
//! The three vibrational spectra (VDOS / IR / Raman) are now the explicit
//! composition of a **raw-ACF compute** with a **spectral
//! [`Fit`](crate::compute::Fit) transform**,
//! keeping "what was measured" separate from "how the analyst transforms it":
//!
//! | spectrum | raw compute (raw ACF) | transform |
//! |----------|-----------------------|-----------|
//! | VDOS | [`VACF`](crate::compute::transport::VACF) (velocity ACF) | [`PowerSpectrum`](super::PowerSpectrum) |
//! | IR | [`IRFlux`](super::IRFlux) (dipole-flux ACF) | [`IRSpectrum`](super::IRSpectrum) |
//! | Raman | [`RamanTensor`](super::RamanTensor) (polarizability iso/aniso ACFs) | [`RamanSpectrum`](super::RamanSpectrum) |
//!
//! The legacy `power_spectrum` / `ir_spectrum` / `raman_spectrum` free functions
//! (which baked window + FFT into the raw ACF) and their inline window/FFT
//! helpers were removed in compute-fit-03-cleanup; the window + one-sided-FFT
//! machinery now lives in [`compute::spectroscopy`](crate::compute::spectroscopy) (a
//! windowed transform is a fit), routing every window through
//! [`molrs::signal`]. Only the two result types and the shared input validator
//! remain here.
//!
//! Reference: Dickey & Paskin, *Phys. Rev.* **188**, 1407 (1969).
//!
//! # Units
//!
//! | quantity | unit |
//! |---------------|--------|
//! | time / dt | fs |
//! | frequency | cm⁻¹ |
//! | intensity | arb. |
//! | temperature | K |
use Array1;
use crateComputeResult;
// ── Result types ─────────────────────────────────────────────────────────────
/// Single-spectrum result (VDOS, IR).
/// Raman spectrum result with isotropic / anisotropic decomposition.