Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Erroneous documentation for auto_basis #9

@tatephughes

Description

@tatephughes

In the documentation for auto_basis, it says

If the manifold is a plane, and regular > 0, then basis functions are placed regularly within the bounding box of data, with the smallest number of basis functions in each row or column equal to the value of regular in the coarsest resolution (note, this is just the smallest number of basis functions). Subsequent resolutions have twice the number of basis functions in each row or column.

However, the numbers here seem to be incorrect. The part of the code (lines 460 and 461) for the number of basis functions in placed in resolution i is round(nx*(3^(i)), where i ranges from 1 to nres, (assuming x is the wider dimension, so nx<-regular on line 416, the same applies if y is the wider dimension of course).

This means that the number of basis function at the coarsest resolution is actually 3 times the value of regular, and subsequent resolutions have thrice the number of basis functions in each row/column.

Really sorry if I have misunderstood the documentation of course!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions