Skip to content

Latest commit

Β 

History

History
20 lines (20 loc) Β· 839 Bytes

Create_New_Material.md

File metadata and controls

20 lines (20 loc) Β· 839 Bytes

Material μΆ”κ°€ν•˜κΈ°

Import Randkid

  • Material: κΈ°λ³Έ
    • Categorical: λ²”μ£Όν˜•
      • Nominal: λͺ…λͺ©
    • Numerical: μˆ˜μΉ˜ν˜•
    • NumericalTuple: μˆ˜μΉ˜ν˜•(νŠœν”Œ)
import { Material, tuple } from "https://raw.githubusercontent.com/randkid/Randkid/master/mod.ts"

Material 속성 μ •μ˜

export default new NumericalTuple({                  // μˆ˜μΉ˜ν˜•(νŠœν”Œ) λ³€μˆ˜
    inputMaterials: tuple([birthdate, gender]),      // μž…λ ₯ λ³€μˆ˜ μ„€μ • (νƒ€μž… 좔둠을 μœ„ν•΄ tuple() μ‚¬μš©)
    ranges: [],                                      // λ³€μˆ˜κ°’ λ²”μœ„ 정보 (ν•„μˆ˜ μ•„λ‹˜)
    rand(seed, birthDateVal, genderVal) {            // λ‘λ²ˆμ§Έ arg λΆ€ν„° λ¬΄μž‘μœ„ μƒμ„±λœ 데이터 μž…λ ₯됨
        // ...                                       // seed와 μž…λ ₯값에 따라 데이터 생성
    }
})