---
name: "ann_sample"
section: "1"
platform: "linux"
package: "ann-tools"
version: "1.1.2+doc-9+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/ann_sample"
---

# ann\_sample(1)

Sample program for the ANN library

## NAME

ann\_sample - Sample program for the ANN library

## SYNOPSIS

```
  ann_sample [-d dim] [-max m] [-nn k] [-e eps] [-df data] [-qf query]
```

## DESCRIPTION

This is a sample program for the the Approximate Nearest Neighbor Searching library.  Results are sent to the standard output. To run a demo, try:

```
    ann_sample -df /usr/share/doc/ann-tools/data.pts -qf /usr/share/doc/ann-tools/query.pts
```

and compare the result with

```
    /usr/share/doc/ann-tools/sample.save
```

## OPTIONS

- \-d dim

  dimension of the space (default = 2)

- \-max m

  maximum number of data points (default = 1000)

- \-nn k

  number of nearest neighbors per query (default 1)

- \-e eps

  the error bound (default = 0.0)

- \-df data

  name of file containing data points

- \-qf query

  name of file containing query points

## AUTHOR

Sunil Arya and David Mount

## COPYRIGHT

This man page is Copyright (C) 2007 Rafael Laboissiere \<rafael AT debian DOT org\> and released under the GNU GPL, version 3 or later.  It was written for the Debian distribution but may be used by others.

## SEE ALSO

ann2fig (1)
