Hierarchy

  • NeuQuant

Index

Constructors

constructor

  • new NeuQuant(thepic: any, len: any, sample: any): NeuQuant
  • Parameters

    • thepic: any
    • len: any
    • sample: any

    Returns NeuQuant

Properties

alphabiasshift

alphabiasshift: number = 10

alphadec

alphadec: any

alpharadbias

alpharadbias: number = (1 << this.alpharadbshift)

alpharadbshift

alpharadbshift: number = (this.alphabiasshift + this.radbiasshift)

beta

beta: number = (this.intbias >> this.betashift)

betagamma

betagamma: number = (this.intbias << (this.gammashift - this.betashift))

betashift

betashift: number = 10

bias

bias: any[] = []

exports

exports: object

Type declaration

freq

freq: any[] = []

gamma

gamma: number = (1 << this.gammashift)

gammashift

gammashift: number = 10

initalpha

initalpha: number = (1 << this.alphabiasshift)

initrad

initrad: number = (this.netsize >> 3)

initradius

initradius: number = (this.initrad * this.radiusbias)

intbias

intbias: number = (1 << this.intbiasshift)

intbiasshift

intbiasshift: number = 16

lengthcount

lengthcount: any

maxnetpos

maxnetpos: number = (this.netsize - 1)

minpicturebytes

minpicturebytes: number = (3 * this.prime4)

ncycles

ncycles: number = 100

netbiasshift

netbiasshift: number = 4

netindex

netindex: any[] = []

netsize

netsize: number = 256

network

network: any

prime1

prime1: number = 499

prime2

prime2: number = 491

prime3

prime3: number = 487

prime4

prime4: number = 503

radbias

radbias: number = (1 << this.radbiasshift)

radbiasshift

radbiasshift: number = 8

radiusbias

radiusbias: number = (1 << this.radiusbiasshift)

radiusbiasshift

radiusbiasshift: number = 6

radiusdec

radiusdec: number = 30

radpower

radpower: any[] = []

samplefac

samplefac: any

thepicture

thepicture: any

Methods

alterneigh

  • alterneigh(rad: any, i: any, b: any, g: any, r: any): void
  • Parameters

    • rad: any
    • i: any
    • b: any
    • g: any
    • r: any

    Returns void

altersingle

  • altersingle(alpha: any, i: any, b: any, g: any, r: any): void
  • Parameters

    • alpha: any
    • i: any
    • b: any
    • g: any
    • r: any

    Returns void

colorMap

  • colorMap(): any[]
  • Returns any[]

contest

  • contest(b: any, g: any, r: any): any
  • Parameters

    • b: any
    • g: any
    • r: any

    Returns any

inxbuild

  • inxbuild(): void
  • Returns void

learn

  • learn(): void
  • Returns void

map

  • map(b: any, g: any, r: any): any
  • Parameters

    • b: any
    • g: any
    • r: any

    Returns any

process

  • process(): any[]
  • Returns any[]

unbiasnet

  • unbiasnet(): void
  • Returns void

Generated using TypeDoc