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

Skip to content

Function Must be 0 at boundary to avoid oversampling at the boundary #269

@DanHarJor

Description

@DanHarJor

Hello, I am looking at the example
https://sgpp.sparsegrids.org/docs/example_predictiveRefinement_py.html

The trial function given looks like
image

It vanishes to 0 at the boundary (0-1) and there are no issues with the refinement. Although the function I need to make a sparse grid for looks like:

image

It is not 0 at the boundary. The problem is that SG++ places almost all of the refined points at the boundary (0.9999) and some far past it (4.29e9).

Most points at the boundary, 0.99999
image

Some points very far past it, 4.29e9
image

I tried making my function step to 0 outside the boundary but the same result happened. I believe it must smoothly transition to 0 outside the boundary. My function does not smoothly transition to 0 yet I need to sample it with SG++.

I am sure I am not the first person with this problem but I could not find an existing issue for it.

Any advice would be appreciated.

Daniel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions