Cpk

Struct Cpk 

Source
pub struct Cpk {
    pub cpk: f64,
    pub ca: f64,
    pub cp: f64,
    pub usl: f64,
    pub lsl: f64,
    pub stddev: f64,
    pub avg: f64,
    pub max: f64,
    pub min: f64,
}
Expand description

制程能力指标

Fields§

§cpk: f64

制程能力

§ca: f64

制程准确度

§cp: f64

制程精密度

§usl: f64

规格上限

§lsl: f64

规格下限

§stddev: f64

标准差

§avg: f64

平均值

§max: f64

最大值

§min: f64

最小值

Implementations§

Source§

impl Cpk

Source

pub fn new<T: Display + Debug>(usl: f64, lsl: f64, array: Vec<T>) -> Self

初始化

  • usl 上限值
  • lsl 下限值
  • array 数据
Source

pub fn cpk_rating_criteria(&self) -> (&'static str, &'static str)

Source

pub fn ca_rating_criteria(&self) -> (&'static str, &'static str)

Source

pub fn cp_rating_criteria(&self) -> (&'static str, &'static str)

Auto Trait Implementations§

§

impl Freeze for Cpk

§

impl RefUnwindSafe for Cpk

§

impl Send for Cpk

§

impl Sync for Cpk

§

impl Unpin for Cpk

§

impl UnwindSafe for Cpk

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.