Unverified Commit 7b5ea960 authored by dwuggh's avatar dwuggh
Browse files

add pure measurement error channel

parent cdb12ebe
......@@ -77,7 +77,16 @@ fn main() {
.parse::<usize>()
.unwrap();
let (m_correct, m_error) = load_channel_coeffs_from_file(matches.value_of("channel").unwrap());
let channel = matches.value_of("channel").unwrap();
let (m_correct, m_error) = if let Ok(pm) = channel.parse::<f64>() {
let mut m_correct = vec![0.; 256];
m_correct[0] = 1. - pm;
let mut m_error = vec![0.; 256];
m_error[0] = pm;
(m_correct, m_error)
} else {
load_channel_coeffs_from_file(channel)
};
// let pm = 0.02;
// let mut m_correct = vec![0.; 256];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment