External module "core/sketch_support"
Variables
Let returnV
returnV: boolean = false
Let vVal
vVal: number = 0
Functions
birandn
birandn( mu1: number , mu2: number , std1: number , std2: number , rho: number ) : number []
Parameters
mu1: number
mu2: number
std1: number
std2: number
rho: number
Returns number []
lineToStroke
lineToStroke( line: number [] [] , lastPoint: number [] ) : number [] []
Parameters
line: number [] []
lastPoint: number []
Returns number [] []
linesToStrokes
linesToStrokes( rawData: number [] [] [] ) : number [] []
Parameters
Returns number [] []
randf
randf( a: number , b: number ) : number
Parameters
Returns number
randi
randi( a: number , b: number ) : number
Parameters
Returns number
randn
randn( mu: number , std: number ) : number
Parameters
Returns number
sampleSoftmax
sampleSoftmax( zSample: number [] | Float32Array ) : number
Parameters
zSample: number [] | Float32Array
Returns number
simplifyLine
simplifyLine( V: number [] [] , tolerance?: number ) : number [] []
Parameters
V: number [] []
Default value tolerance: number = 2
Returns number [] []
simplifyLines
simplifyLines( lines: number [] [] [] , tolerance?: number ) : number [] [] []
Parameters
lines: number [] [] []
Optional tolerance: number
Returns number [] [] []
stringToArray
stringToArray( b64encoded: string ) : Int16Array
Parameters
Returns Int16Array
int16 version of data.
stringToUint8array
stringToUint8array( b64encoded: string ) : Uint8Array
Parameters
Returns Uint8Array
uint8 version of data.
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
Support modules used by SketchRNN
Copyright 2018 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.