loc2dirac: Convert a Location Vector to a 0-1 Indicator Vector

Description Usage Arguments Value

Description

Convert a location vector to a 0-1 indicator vector, such that the corresponding entries in these locations are 1.

Usage

1
loc2dirac(loc, N)

Arguments

loc

An integer vector, length does not exceed N.

N

The length of the resulting indicator vector.

Value

A 0-1 indicator vector of length N.


yingboli/BayesMDL documentation built on May 29, 2019, 12:18 p.m.