nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.Math.Core / TrIQ

TrIQ

Full name Microsoft.VisualBasic.Math.Distributions.TrIQ Assembly Microsoft.VisualBasic.Math.Core Members 4

Contrast optimization of mass spectrometry imaging (MSI) data visualization by threshold intensity quantization (TrIQ)

00 Remarks

works based on the ECDF.

01 Syntax

Microsoft.VisualBasic.Math.Distributions.TrIQ

02 Methods

NameOverloadsSummary
CutThreshold 1 trim the head intensity data by a given cutoff threshold which is evaluated via the TrIQ algorithm.
FindThreshold 1 The Threshold Intensity Quantization addresses this issue by setting a new upper limit T
GetTrIQRange 1 get the best value range for level scaler via TrIQ algorithm.
DiscreteLevels 1 Quantization is a process for mapping a range of analog intensity values To a Single discrete value, known As a gray level.

03 Members

method CutThreshold #
CutThreshold(IEnumerable(Of Double), Double, Int32, Double)

trim the head intensity data by a given cutoff threshold which is evaluated via the TrIQ algorithm.

Parameters
NameTypeDescription
dataIEnumerable(Of Double)

-

qDouble

-

NInt32

-

epsDouble

-

method FindThreshold #
FindThreshold(IEnumerable(Of Double), Double, Int32, Double)

The Threshold Intensity Quantization addresses this issue by setting a new upper limit T

Parameters
NameTypeDescription
dataIEnumerable(Of Double)

-

qDouble

-

NInt32

-

epsDouble

-

Returns

the upper bound raw value of the threshold

method GetTrIQRange #
GetTrIQRange(IEnumerable(Of Double), Double, Int32, Double)

get the best value range for level scaler via TrIQ algorithm.

Parameters
NameTypeDescription
dataIEnumerable(Of Double)

-

qDouble

-

NInt32

-

epsDouble

-

Returns

[min,max] of the data range.

method DiscreteLevels #
DiscreteLevels(IEnumerable(Of Double), Int32, Nullable(Of Double))

Quantization is a process for mapping a range of analog intensity values To a Single discrete value, known As a gray level.

Remarks

Quantization is a process For mapping a range of analog intensity values To a Single discrete value, known As a gray level. Zero-memory Is a widely used quantization method. The zero-memory quantizer computes equally spaced intensity bins Of width w:

 w = (max(f) - min(f)) / n

where n represents the number Of discrete values, usually 256; min(f) And max(f) operators provide minimum And maximum intensity values. Quantization Is based On a comparison with the transition levels tk:

 tk = w + min(f), 2w + min(f), ..., nw + min(f)

Finally, the discrete mapped value Q Is obtained:

 Q(f(x, y)) = {
     
     0,  f(x,y) <= t1
     k,  tk < f(x,y) < tk+1
 }
Parameters
NameTypeDescription
dataIEnumerable(Of Double)

-

nInt32

-

TNullable(Of Double)

-